function CompositeConstraintBase::coversFields

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/CompositeConstraintBase.php \Drupal\Core\Entity\Plugin\Validation\Constraint\CompositeConstraintBase::coversFields()
  2. 10 core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/CompositeConstraintBase.php \Drupal\Core\Entity\Plugin\Validation\Constraint\CompositeConstraintBase::coversFields()
  3. 11.x core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/CompositeConstraintBase.php \Drupal\Core\Entity\Plugin\Validation\Constraint\CompositeConstraintBase::coversFields()

An array of entity fields which should be passed to the validator.

Return value

string[] An array of field names.

4 methods override CompositeConstraintBase::coversFields()
CommentNameConstraint::coversFields in core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraint.php
An array of entity fields which should be passed to the validator.
EntityTestCompositeConstraint::coversFields in core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraint.php
An array of entity fields which should be passed to the validator.
MenuTreeHierarchyConstraint::coversFields in core/modules/menu_link_content/src/Plugin/Validation/Constraint/MenuTreeHierarchyConstraint.php
An array of entity fields which should be passed to the validator.
TaxonomyTermHierarchyConstraint::coversFields in core/modules/taxonomy/src/Plugin/Validation/Constraint/TaxonomyTermHierarchyConstraint.php
An array of entity fields which should be passed to the validator.

File

core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/CompositeConstraintBase.php, line 23

Class

CompositeConstraintBase
Provides a base class for constraints validating multiple fields.

Namespace

Drupal\Core\Entity\Plugin\Validation\Constraint

Code

public abstract function coversFields();

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