You are here

abstract public function CompositeConstraintBase::coversFields in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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.

2 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.

File

core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/CompositeConstraintBase.php, line 28
Contains \Drupal\Core\Entity\Plugin\Validation\Constraint\CompositeConstraintBase.

Class

CompositeConstraintBase
Provides a base class for constraints validating multiple fields.

Namespace

Drupal\Core\Entity\Plugin\Validation\Constraint

Code

public abstract function coversFields();