class InPlaceEditorManager

Editor manager.

The form editor must always be available.

Hierarchy

Expanded class hierarchy of InPlaceEditorManager

3 files declare their use of InPlaceEditorManager
EditIntegrationTest.php in drupal/core/modules/editor/lib/Drupal/editor/Tests/EditIntegrationTest.php
Contains \Drupal\editor\Tests\EditorIntegrationTest.
EditorSelectionTest.php in drupal/core/modules/edit/lib/Drupal/edit/Tests/EditorSelectionTest.php
Contains \Drupal\edit\Tests\EditorSelectionTest.
MetadataGeneratorTest.php in drupal/core/modules/edit/lib/Drupal/edit/Tests/MetadataGeneratorTest.php
Contains \Drupal\edit\Tests\MetadataGeneratorTest.
1 string reference to 'InPlaceEditorManager'
edit.services.yml in drupal/core/modules/edit/edit.services.yml
drupal/core/modules/edit/edit.services.yml
1 service uses InPlaceEditorManager

File

drupal/core/modules/edit/lib/Drupal/edit/Plugin/InPlaceEditorManager.php, line 22
Contains \Drupal\edit\Plugin\InPlaceEditorManager.

Namespace

Drupal\edit\Plugin
View source
class InPlaceEditorManager extends PluginManagerBase {

  /**
   * Overrides \Drupal\Component\Plugin\PluginManagerBase::__construct().
   *
   * @param \Traversable $namespaces
   *   An object that implements \Traversable which contains the root paths
   *   keyed by the corresponding namespace to look for plugin implementations,
   */
  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);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
InPlaceEditorManager::__construct public function Overrides \Drupal\Component\Plugin\PluginManagerBase::__construct().
PluginManagerBase::$defaults protected property A set of defaults to be referenced by $this->processDefinition() if additional processing of plugins is necessary or helpful for development purposes. 3
PluginManagerBase::$discovery protected property The object that discovers plugins managed by this manager.
PluginManagerBase::$factory protected property The object that instantiates plugins managed by this manager.
PluginManagerBase::$mapper protected property The object that returns the preconfigured plugin instance appropriate for a particular runtime condition.
PluginManagerBase::clearCachedDefinitions public function Clears static and persistent plugin definition caches. Overrides CachedDiscoveryInterface::clearCachedDefinitions
PluginManagerBase::createInstance public function Returns a preconfigured instance of a plugin. Overrides FactoryInterface::createInstance 6
PluginManagerBase::getDefinition public function Gets a specific plugin definition. Overrides DiscoveryInterface::getDefinition
PluginManagerBase::getDefinitions public function Gets the definition of all plugins for this type. Overrides DiscoveryInterface::getDefinitions
PluginManagerBase::getInstance public function Returns a preconfigured instance of a plugin. Overrides MapperInterface::getInstance 6
PluginManagerBase::processDefinition public function Performs extra processing on plugin definitions. 2