SchedulerModerationConstraint.php in Scheduler content moderation integration 8
File
src/Plugin/Validation/Constraint/SchedulerModerationConstraint.php
View source
<?php
namespace Drupal\scheduler_content_moderation_integration\Plugin\Validation\Constraint;
use Drupal\Core\Entity\Plugin\Validation\Constraint\CompositeConstraintBase;
class SchedulerModerationConstraint extends CompositeConstraintBase {
public $messagePublishModerationInvalid = "Invalid moderation transition, adjust the node's current state.";
public function coversFields() {
return [
'publish_state',
'unpublish_state',
];
}
}