function TaxonomyTermHierarchyConstraintValidator::create

Same name in other branches
  1. 9 core/modules/taxonomy/src/Plugin/Validation/Constraint/TaxonomyTermHierarchyConstraintValidator.php \Drupal\taxonomy\Plugin\Validation\Constraint\TaxonomyTermHierarchyConstraintValidator::create()
  2. 8.9.x core/modules/taxonomy/src/Plugin/Validation/Constraint/TaxonomyTermHierarchyConstraintValidator.php \Drupal\taxonomy\Plugin\Validation\Constraint\TaxonomyTermHierarchyConstraintValidator::create()
  3. 11.x core/modules/taxonomy/src/Plugin/Validation/Constraint/TaxonomyTermHierarchyConstraintValidator.php \Drupal\taxonomy\Plugin\Validation\Constraint\TaxonomyTermHierarchyConstraintValidator::create()

Overrides ContainerInjectionInterface::create

File

core/modules/taxonomy/src/Plugin/Validation/Constraint/TaxonomyTermHierarchyConstraintValidator.php, line 37

Class

TaxonomyTermHierarchyConstraintValidator
Constraint validator for changing term parents in pending revisions.

Namespace

Drupal\taxonomy\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.