public function RulesComponentAction::__construct in Rules 8.3
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.
Overrides ContextAwarePluginBase::__construct
File
- src/
Plugin/ RulesAction/ RulesComponentAction.php, line 55
Class
- RulesComponentAction
- Provides a generic 'Execute Rules component' action.
Namespace
Drupal\rules\Plugin\RulesActionCode
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'];
}