function RulesComponentAction::__construct

Constructs a RulesComponentAction 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\Core\Entity\EntityStorageInterface $storage: The entity storage service.

File

src/Plugin/RulesAction/RulesComponentAction.php, line 55

Class

RulesComponentAction
Provides a generic 'Execute Rules component' action.

Namespace

Drupal\rules\Plugin\RulesAction

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityStorageInterface $storage) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    $this->storage = $storage;
    $this->componentId = $plugin_definition['component_id'];
}