You are here

public function SchedulerUnpublishOnConstraint::coversFields in Scheduler 8

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

Class

SchedulerUnpublishOnConstraint
Validates unpublish on values.

Namespace

Drupal\scheduler\Plugin\Validation\Constraint

Code

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