function EntityBundleExistsConstraintValidator::__construct

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/EntityBundleExistsConstraintValidator.php \Drupal\Core\Validation\Plugin\Validation\Constraint\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\Constraint

Code

public function __construct(EntityTypeBundleInfoInterface $bundleInfo) {
}

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