public function CKEditorPluginManager::__construct

Overrides \Drupal\Component\Plugin\PluginManagerBase::__construct().

Parameters

\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations,

File

drupal/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginManager.php, line 31
Contains \Drupal\ckeditor\CKEditorPluginManager.

Class

CKEditorPluginManager
CKEditor Plugin manager.

Namespace

Drupal\ckeditor

Code

public function __construct(\Traversable $namespaces) {
  $annotation_namespaces = array(
    'Drupal\\ckeditor\\Annotation' => $namespaces['Drupal\\ckeditor'],
  );
  $this->discovery = new AnnotatedClassDiscovery('CKEditorPlugin', $namespaces, $annotation_namespaces, 'Drupal\\ckeditor\\Annotation\\CKEditorPlugin');
  $this->discovery = new AlterDecorator($this->discovery, 'ckeditor_plugin_info');
  $this->discovery = new CacheDecorator($this->discovery, 'ckeditor_plugin');
  $this->factory = new DefaultFactory($this->discovery);
}