src/CKEditorModule/View/Helper/CKEditor.php
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;
    }
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;
    }
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 ; }
Translates our internal Options object into a usable config array
for CKEditor.

@param \CKEditor\Options $options
@return array
Translates our internal Options object into a usable config array for CKEditor .