function EntityBundleExistsConstraint::getDefaultOption
@todo Add method return type declaration.
Return value
?string Name of the default option.
See also
https://www.drupal.org/project/drupal/issues/3425150
File
-
core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ EntityBundleExistsConstraint.php, line 51
Class
- EntityBundleExistsConstraint
- Checks if a bundle exists on a certain content entity type.
Namespace
Drupal\Core\Validation\Plugin\Validation\ConstraintCode
public function getDefaultOption() {
return 'entityTypeId';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.