class ProcessDecorator

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.

Hierarchy

Expanded class hierarchy of ProcessDecorator

10 files declare their use of ProcessDecorator

File

drupal/core/lib/Drupal/Component/Plugin/Discovery/ProcessDecorator.php, line 16
Contains \Drupal\Component\Plugin\Discovery\ProcessDecorator.

Namespace

Drupal\Component\Plugin\Discovery
View source

Members

Namesort descending Modifiers Type Description Overrides
ProcessDecorator::$decorated protected property The Discovery object being decorated.
ProcessDecorator::$processCallback protected property The processor callback to run on each discovered definition.
ProcessDecorator::getDefinition public function Implements \Drupal\Component\Plugin\Discovery\DicoveryInterface::getDefinition(). Overrides DiscoveryInterface::getDefinition
ProcessDecorator::getDefinitions public function Implements \Drupal\Component\Plugin\Discovery\DicoveryInterface::getDefinitions(). Overrides DiscoveryInterface::getDefinitions
ProcessDecorator::__call public function Passes through all unknown calls onto the decorated object.
ProcessDecorator::__construct public function Constructs a \Drupal\Component\Plugin\Discovery\ProcessDecorator object.