function EntityBundleExistsConstraintValidator::__construct
Constructs an EntityBundleExistsConstraintValidator object.
Parameters
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundleInfo: The entity type bundle info service.
File
-
core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ EntityBundleExistsConstraintValidator.php, line 26
Class
- EntityBundleExistsConstraintValidator
- Validates that a bundle exists on a certain content entity type.
Namespace
Drupal\Core\Validation\Plugin\Validation\ConstraintCode
public function __construct(private readonly EntityTypeBundleInfoInterface $bundleInfo) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.