original_string: protected function optionsToCKEditorConfig(Options $options)
      {
          $config = array();
          foreach ($options->toArray() as $key => $value) {
              if (!array_key_exists($key, static::$optionsToConfigMap)) {
                  continue;
              }
              
              if (in_array($key, static::$optionsToPrependBasePath)) {
                  if (is_array($value)) {
                      foreach ($value as &$deepValue) {
                          $deepValue = $this->view->basePath($deepValue);
                      }
                  } else {
                      $value = $this->view->basePath($value);
                  }
              }
              
              $config[static::$optionsToConfigMap[$key]] = $value;
          }
          
          return $config;
      }
code: protected function optionsToCKEditorConfig(Options $options)
      {
          $config = array();
          foreach ($options->toArray() as $key => $value) {
              if (!array_key_exists($key, static::$optionsToConfigMap)) {
                  continue;
              }
              
              if (in_array($key, static::$optionsToPrependBasePath)) {
                  if (is_array($value)) {
                      foreach ($value as &$deepValue) {
                          $deepValue = $this->view->basePath($deepValue);
                      }
                  } else {
                      $value = $this->view->basePath($value);
                  }
              }
              
              $config[static::$optionsToConfigMap[$key]] = $value;
          }
          
          return $config;
      }
code_tokens: protected function optionsToCKEditorConfig ( Options $ options ) { $ config = array ( ) ; foreach ( $ options -> toArray ( ) as $ key => $ value ) { if ( ! array_key_exists ( $ key , static :: $ optionsToConfigMap ) ) { continue ; } if ( in_array ( $ key , static :: $ optionsToPrependBasePath ) ) { if ( is_array ( $ value ) ) { foreach ( $ value as & $ deepValue ) { $ deepValue = $ this -> view -> basePath ( $ deepValue ) ; } } else { $ value = $ this -> view -> basePath ( $ value ) ; } } $ config [ static :: $ optionsToConfigMap [ $ key ] ] = $ value ; } return $ config ; }
docstring: Translates our internal Options object into a usable config array
  for CKEditor.
  
  @param \CKEditor\Options $options
  @return array
docstring_tokens: Translates our internal Options object into a usable config array for CKEditor .