You are here

public function SchedulerPublishOnConstraint::coversFields in Scheduler 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Validation/Constraint/SchedulerPublishOnConstraint.php \Drupal\scheduler\Plugin\Validation\Constraint\SchedulerPublishOnConstraint::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

src/Plugin/Validation/Constraint/SchedulerPublishOnConstraint.php, line 28

Class

SchedulerPublishOnConstraint
Validates publish on values.

Namespace

Drupal\scheduler\Plugin\Validation\Constraint

Code

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