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. 8.9.x core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/CompositeConstraintBase.php \Drupal\Core\Entity\Plugin\Validation\Constraint\CompositeConstraintBase::coversFields()
  3. 10 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
EntityTestCompositeConstraint::coversFields in core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraint.php
MenuTreeHierarchyConstraint::coversFields in core/modules/menu_link_content/src/Plugin/Validation/Constraint/MenuTreeHierarchyConstraint.php
TaxonomyTermHierarchyConstraint::coversFields in core/modules/taxonomy/src/Plugin/Validation/Constraint/TaxonomyTermHierarchyConstraint.php

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.