InfoHookDecorator
class InfoHookDecorator implements DiscoveryInterface (View source)
Allows info hook implementations to enhance discovered plugin definitions.
Traits
Properties
| protected DiscoveryInterface | $decorated | The Discovery object being decorated. |
|
| protected string | $hook | The name of the info hook that will be implemented by this discovery instance. |
Methods
array
getDefinitions()
Gets the definition of all plugins for this type.
array|null
doGetDefinition(array $definitions, string $plugin_id, bool $exception_on_invalid)
Gets a specific plugin definition.
from
DiscoveryTrait
__call($method, $args)
Passes through all unknown calls onto the decorated object.
Details
array
getDefinitions()
Gets the definition of all plugins for this type.
getDefinition($plugin_id, $exception_on_invalid = TRUE)
{@inheritdoc}
protected array|null
doGetDefinition(array $definitions, string $plugin_id, bool $exception_on_invalid)
Gets a specific plugin definition.
hasDefinition($plugin_id)
{@inheritdoc}
__construct(DiscoveryInterface $decorated, string $hook)
Constructs an InfoHookDecorator object.
__call($method, $args)
Passes through all unknown calls onto the decorated object.