function PathAliasCreate::create

Overrides ContainerFactoryPluginInterface::create

File

src/Plugin/RulesAction/PathAliasCreate.php, line 69

Class

PathAliasCreate
Provides a 'Create any path alias' action.

Namespace

Drupal\rules\Plugin\RulesAction

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static($configuration, $plugin_id, $plugin_definition, $container->get('entity_type.manager')
        ->getStorage('path_alias'));
}