interface PluginManagerInterface in Plug 7
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
- interface \Drupal\Component\Plugin\Discovery\DiscoveryInterface; interface \Drupal\Component\Plugin\Factory\FactoryInterface; interface \Drupal\Component\Plugin\Mapper\MapperInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
Expanded class hierarchy of PluginManagerInterface
All classes that implement PluginManagerInterface
See also
\Drupal\Component\Plugin\PluginManagerBase
2 files declare their use of PluginManagerInterface
- DefaultLazyPluginCollection.php in lib/
Drupal/ Core/ Plugin/ DefaultLazyPluginCollection.php - Contains \Drupal\Core\Plugin\DefaultLazyPluginCollection.
- DefaultPluginManager.php in lib/
Drupal/ Core/ Plugin/ DefaultPluginManager.php - Contains \Drupal\Core\Plugin\DefaultPluginManager.
File
- lib/
Drupal/ Component/ Plugin/ PluginManagerInterface.php, line 32 - Contains \Drupal\Component\Plugin\PluginManagerInterface.
Namespace
Drupal\Component\PluginView source
interface PluginManagerInterface extends DiscoveryInterface, FactoryInterface, MapperInterface {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DiscoveryInterface:: |
public | function | Gets a specific plugin definition. | |
DiscoveryInterface:: |
public | function | Gets the definition of all plugins for this type. | |
DiscoveryInterface:: |
public | function | Indicates if a specific plugin definition exists. | |
FactoryInterface:: |
public | function | Creates a pre-configured instance of a plugin. | 2 |
MapperInterface:: |
public | function | Gets a preconfigured instance of a plugin. | 1 |