public function EntityHasFieldConstraint::getDefaultOption in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php \Drupal\Core\Entity\Plugin\Validation\Constraint\EntityHasFieldConstraint::getDefaultOption()
- 10 core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php \Drupal\Core\Entity\Plugin\Validation\Constraint\EntityHasFieldConstraint::getDefaultOption()
1 call to EntityHasFieldConstraint::getDefaultOption()
- EntityHasFieldConstraint::getRequiredOptions in core/
lib/ Drupal/ Core/ Entity/ Plugin/ Validation/ Constraint/ EntityHasFieldConstraint.php - Returns the name of the required options.
File
- core/
lib/ Drupal/ Core/ Entity/ Plugin/ Validation/ Constraint/ EntityHasFieldConstraint.php, line 42
Class
- EntityHasFieldConstraint
- Checks if a value is an entity that has a specific field.
Namespace
Drupal\Core\Entity\Plugin\Validation\ConstraintCode
public function getDefaultOption() {
return 'field_name';
}