function EntityBundleExistsConstraintValidator::create
Same name in other branches
- 11.x core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/EntityBundleExistsConstraintValidator.php \Drupal\Core\Validation\Plugin\Validation\Constraint\EntityBundleExistsConstraintValidator::create()
Overrides ContainerInjectionInterface::create
File
-
core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ EntityBundleExistsConstraintValidator.php, line 31
Class
- EntityBundleExistsConstraintValidator
- Validates that a bundle exists on a certain content entity type.
Namespace
Drupal\Core\Validation\Plugin\Validation\ConstraintCode
public static function create(ContainerInterface $container) {
return new static($container->get(EntityTypeBundleInfoInterface::class));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.