You are here

public function ScheduledDateProvidedConstraint::coversFields in Sitewide Alert 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/ScheduledDateProvidedConstraint.php, line 32

Class

ScheduledDateProvidedConstraint
Plugin implementation of the 'ScheduledDateProvided'.

Namespace

Drupal\sitewide_alert\Plugin\Validation\Constraint

Code

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