1. 8.3.x core/lib/Drupal/Component/Plugin/PluginManagerInterface.php PluginManagerInterface
  2. 8.0.x core/lib/Drupal/Component/Plugin/PluginManagerInterface.php PluginManagerInterface
  3. 8.1.x core/lib/Drupal/Component/Plugin/PluginManagerInterface.php PluginManagerInterface
  4. 8.2.x core/lib/Drupal/Component/Plugin/PluginManagerInterface.php PluginManagerInterface
  5. 8.4.x core/lib/Drupal/Component/Plugin/PluginManagerInterface.php 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.


Expanded class hierarchy of PluginManagerInterface

All classes that implement PluginManagerInterface

See also


Related topics

32 files declare their use of PluginManagerInterface


core/lib/Drupal/Component/Plugin/PluginManagerInterface.php, line 28




Contains filters are case sensitive
Namesort descending Modifiers Type Description Overrides
DiscoveryInterface::getDefinition public function Gets a specific plugin definition. Overrides DiscoveryInterface::getDefinition 5
DiscoveryInterface::getDefinitions public function Gets the definition of all plugins for this type. Overrides DiscoveryInterface::getDefinitions 3
DiscoveryInterface::hasDefinition public function Indicates if a specific plugin definition exists. Overrides DiscoveryInterface::hasDefinition 3
FactoryInterface::createInstance public function Creates a pre-configured instance of a plugin. Overrides FactoryInterface::createInstance 7
MapperInterface::getInstance public function Gets a preconfigured instance of a plugin. Overrides MapperInterface::getInstance 5