function NoFieldItemsExistWithHigherCardinalityValidator::create

File

core/modules/field/src/Plugin/Validation/Constraint/NoFieldItemsExistWithHigherCardinalityValidator.php, line 46

Class

NoFieldItemsExistWithHigherCardinalityValidator
Validates the NoFieldItemsExistWithHigherCardinality constraint.

Namespace

Drupal\field\Plugin\Validation\Constraint

Code

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

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