function UniquePathAliasConstraintValidator::create

Same name in other branches
  1. 9 core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/UniquePathAliasConstraintValidator.php \Drupal\Core\Path\Plugin\Validation\Constraint\UniquePathAliasConstraintValidator::create()
  2. 10 core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/UniquePathAliasConstraintValidator.php \Drupal\Core\Path\Plugin\Validation\Constraint\UniquePathAliasConstraintValidator::create()
  3. 11.x core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/UniquePathAliasConstraintValidator.php \Drupal\Core\Path\Plugin\Validation\Constraint\UniquePathAliasConstraintValidator::create()

Overrides ContainerInjectionInterface::create

File

core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/UniquePathAliasConstraintValidator.php, line 36

Class

UniquePathAliasConstraintValidator
Constraint validator for a unique path alias.

Namespace

Drupal\Core\Path\Plugin\Validation\Constraint

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('entity_type.manager'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.