function PathAliasExists::create

Overrides ContainerFactoryPluginInterface::create

File

src/Plugin/Condition/PathAliasExists.php, line 65

Class

PathAliasExists
Provides a 'Path alias exists' condition.

Namespace

Drupal\rules\Plugin\Condition

Code

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