function TokenProcessor::__construct

Constructs a TokenProcessor object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin ID for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\typed_data\PlaceholderResolverInterface $placeholder_resolver: The placeholder resolver.

File

src/Plugin/RulesDataProcessor/TokenProcessor.php, line 41

Class

TokenProcessor
A data processor for placeholder token replacements.

Namespace

Drupal\rules\Plugin\RulesDataProcessor

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, PlaceholderResolverInterface $placeholder_resolver) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    $this->placeholderResolver = $placeholder_resolver;
}