original_string: public function buildOptions(array $options)
      {
          $options = array_merge(
              array(
                  'link' => null,
                  'icon' => null,
              ),
              $options
          );
  
          if (isset($options['link']) && $options['link'] !== null) {
              $options['extras']['link'] = (array) $options['link'];
          }
          $options['extras']['icon'] = $options['icon'];
          return $options;
      }
code: public function buildOptions(array $options)
      {
          $options = array_merge(
              array(
                  'link' => null,
                  'icon' => null,
              ),
              $options
          );
  
          if (isset($options['link']) && $options['link'] !== null) {
              $options['extras']['link'] = (array) $options['link'];
          }
          $options['extras']['icon'] = $options['icon'];
          return $options;
      }
code_tokens: public function buildOptions ( array $ options ) { $ options = array_merge ( array ( 'link' => null , 'icon' => null , ) , $ options ) ; if ( isset ( $ options [ 'link' ] ) && $ options [ 'link' ] !== null ) { $ options [ 'extras' ] [ 'link' ] = ( array ) $ options [ 'link' ] ; } $ options [ 'extras' ] [ 'icon' ] = $ options [ 'icon' ] ; return $ options ; }
docstring: Builds the full option array used to configure the item.
  
  @param array $options The options processed by the previous extensions
  
  @return array
docstring_tokens: Builds the full option array used to configure the item .