public function SchedulerModerationConstraint::coversFields in Scheduler content moderation integration 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/ SchedulerModerationConstraint.php, line 28
Class
- SchedulerModerationConstraint
- Validates publish on values.
Namespace
Drupal\scheduler_content_moderation_integration\Plugin\Validation\ConstraintCode
public function coversFields() {
return [
'publish_state',
'unpublish_state',
];
}