function EntityPathAliasCreate::__construct

Constructs an EntityPathAliasCreate 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 $alias_storage: The alias storage service.

File

src/Plugin/RulesAction/EntityPathAliasCreate.php, line 49

Class

EntityPathAliasCreate
Provides a generic 'Create entity path alias' action.

Namespace

Drupal\rules\Plugin\RulesAction

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityStorageInterface $alias_storage) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    $this->aliasStorage = $alias_storage;
    $this->entityTypeId = $plugin_definition['entity_type_id'];
}