public function InPlaceEditorManager::__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/edit/lib/Drupal/edit/Plugin/InPlaceEditorManager.php, line 31
Contains \Drupal\edit\Plugin\InPlaceEditorManager.

Class

InPlaceEditorManager
Editor manager.

Namespace

Drupal\edit\Plugin

Code

public function __construct(\Traversable $namespaces) {
  $annotation_namespaces = array(
    'Drupal\\edit\\Annotation' => $namespaces['Drupal\\edit'],
  );
  $this->discovery = new AnnotatedClassDiscovery('InPlaceEditor', $namespaces, $annotation_namespaces, 'Drupal\\edit\\Annotation\\InPlaceEditor');
  $this->discovery = new AlterDecorator($this->discovery, 'edit_editor');
  $this->discovery = new CacheDecorator($this->discovery, 'edit:editor');
  $this->factory = new DefaultFactory($this->discovery);
}