function UniqueFieldValueValidator::create
Same name in other branches
- 11.x core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UniqueFieldValueValidator.php \Drupal\Core\Validation\Plugin\Validation\Constraint\UniqueFieldValueValidator::create()
Overrides ContainerInjectionInterface::create
File
-
core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ UniqueFieldValueValidator.php, line 31
Class
- UniqueFieldValueValidator
- Validates that a field is unique for the given entity type.
Namespace
Drupal\Core\Validation\Plugin\Validation\ConstraintCode
public static function create(ContainerInterface $container) {
return new static($container->get('entity_field.manager'), $container->get('entity_type.manager'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.