AnnotationBridgeDecorator
class AnnotationBridgeDecorator implements DiscoveryInterface (View source)
Ensures that all definitions are run through the annotation process.
Traits
Properties
| protected DiscoveryInterface | $decorated | The decorated plugin discovery. |
|
| protected string|null | $pluginDefinitionAnnotationName | The name of the annotation that contains the plugin definition. |
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
__construct(DiscoveryInterface $decorated, string $plugin_definition_annotation_name)
ObjectDefinitionDiscoveryDecorator constructor.
mixed
__call(string $method, array $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 $plugin_definition_annotation_name)
ObjectDefinitionDiscoveryDecorator constructor.
mixed
__call(string $method, array $args)
Passes through all unknown calls onto the decorated object.