You are here

public function WorkflowFieldConstraint::coversFields in Workflow 8

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

Return value

string[] An array of field names.

Overrides CompositeConstraintBase::coversFields

File

src/Plugin/Validation/Constraint/WorkflowFieldConstraint.php, line 33

Class

WorkflowFieldConstraint
Supports validating Workflow Field names.

Namespace

Drupal\workflow\Plugin\Validation\Constraint

Code

public function coversFields() {
  return [
    'field_name',
  ];
}