public function EntityTestCompositeConstraint::coversFields in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraint.php \Drupal\entity_test\Plugin\Validation\Constraint\EntityTestCompositeConstraint::coversFields()
An array of entity fields which should be passed to the validator.
Return value
string[] An array of field names.
Overrides CompositeConstraintBase::coversFields
File
- core/
modules/ system/ tests/ modules/ entity_test/ src/ Plugin/ Validation/ Constraint/ EntityTestCompositeConstraint.php, line 28 - Contains \Drupal\entity_test\Plugin\Validation\Constraint\EntityTestCompositeConstraint.
Class
- EntityTestCompositeConstraint
- Constraint with multiple fields.
Namespace
Drupal\entity_test\Plugin\Validation\ConstraintCode
public function coversFields() {
return [
'name',
'type',
];
}