Allows custom processing of the discovered definition.
Example use cases include adding in default values for a definition, or providing a backwards compatibility layer for renamed definition properties.
Expanded class hierarchy of ProcessDecorator
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ProcessDecorator:: |
protected | property | The Discovery object being decorated. | |
ProcessDecorator:: |
protected | property | The processor callback to run on each discovered definition. | |
ProcessDecorator:: |
public | function |
Implements \Drupal\Component\Plugin\Discovery\DicoveryInterface::getDefinition(). Overrides DiscoveryInterface:: |
|
ProcessDecorator:: |
public | function |
Implements \Drupal\Component\Plugin\Discovery\DicoveryInterface::getDefinitions(). Overrides DiscoveryInterface:: |
|
ProcessDecorator:: |
public | function | Passes through all unknown calls onto the decorated object. | |
ProcessDecorator:: |
public | function | Constructs a \Drupal\Component\Plugin\Discovery\ProcessDecorator object. |