class InPlaceEditorManager

Provides an in-place editor manager.

The 'form' in-place editor must always be available.

Hierarchy

Expanded class hierarchy of InPlaceEditorManager

See also

\Drupal\quickedit\Annotation\InPlaceEditor

\Drupal\quickedit\Plugin\InPlaceEditorBase

\Drupal\quickedit\Plugin\InPlaceEditorInterface

Plugin API

1 string reference to 'InPlaceEditorManager'
quickedit.services.yml in core/modules/quickedit/quickedit.services.yml
core/modules/quickedit/quickedit.services.yml
1 service uses InPlaceEditorManager
plugin.manager.quickedit.editor in core/modules/quickedit/quickedit.services.yml
Drupal\quickedit\Plugin\InPlaceEditorManager

File

core/modules/quickedit/src/Plugin/InPlaceEditorManager.php, line 19

Namespace

Drupal\quickedit\Plugin
View source
class InPlaceEditorManager extends DefaultPluginManager {
  
  /**
   * Constructs an InPlaceEditorManager object.
   *
   * @param \Traversable $namespaces
   *   An object that implements \Traversable which contains the root paths
   *   keyed by the corresponding namespace to look for plugin implementations.
   * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
   *   Cache backend instance to use.
   * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
   *   The module handler to invoke the alter hook with.
   */
  public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
    parent::__construct('Plugin/InPlaceEditor', $namespaces, $module_handler, 'Drupal\\quickedit\\Plugin\\InPlaceEditorInterface', 'Drupal\\quickedit\\Annotation\\InPlaceEditor');
    $this->alterInfo('quickedit_editor');
    $this->setCacheBackend($cache_backend, 'quickedit:editor');
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.