interface PluginManagerInterface

Interface implemented by plugin managers.

There are no explicit methods on the manager interface. Instead plugin managers broker the interactions of the different plugin components, and therefore, must implement each component interface, which is enforced by this interface extending all of the component ones.

While a plugin manager may directly implement these interface methods with custom logic, it is expected to be more common for plugin managers to proxy the method invocations to the respective components, and directly implement only the additional functionality needed by the specific pluggable system. To follow this pattern, plugin managers can extend from the PluginManagerBase class, which contains the proxying logic.

Hierarchy

Expanded class hierarchy of PluginManagerInterface

All classes that implement PluginManagerInterface

See also

Drupal\Component\Plugin\PluginManagerBase

9 files declare their use of PluginManagerInterface
ActionBag.php in drupal/core/lib/Drupal/Core/Action/ActionBag.php
Contains \Drupal\Core\Action\ActionBag.
BlockPluginBag.php in drupal/core/modules/block/lib/Drupal/block/BlockPluginBag.php
Contains \Drupal\block\BlockPluginBag.
DisplayBag.php in drupal/core/modules/views/lib/Drupal/views/DisplayBag.php
Contains \Drupal\views\DisplayBag.
EditorSelector.php in drupal/core/modules/edit/lib/Drupal/edit/EditorSelector.php
Contains \Drupal\edit\EditorSelector.
ExecutableManagerInterface.php in drupal/core/lib/Drupal/Core/Executable/ExecutableManagerInterface.php
Contains \Drupal\Core\Executable\ExecutableManagerInterface.

... See full list

File

drupal/core/lib/Drupal/Component/Plugin/PluginManagerInterface.php, line 30
Definition of Drupal\Component\Plugin\PluginManagerInterface

Namespace

Drupal\Component\Plugin
View source
interface PluginManagerInterface extends DiscoveryInterface, FactoryInterface, MapperInterface {

}

Members

Namesort descending Modifiers Type Description Overrides
DiscoveryInterface::getDefinition public function Gets a specific plugin definition. 10
DiscoveryInterface::getDefinitions public function Gets the definition of all plugins for this type. 10
FactoryInterface::createInstance public function Returns a preconfigured instance of a plugin. 2
MapperInterface::getInstance public function Returns a preconfigured instance of a plugin. 1