You are here

class PublishStateConstraint in Scheduler content moderation integration 8

Validates scheduler publish state.

Plugin annotation


@Constraint(
  id = "SchedulerPublishState",
  label = @Translation("Scheduler publish state validation", context = "Validation"),
  type = "entity:node"
)

Hierarchy

  • class \Drupal\scheduler_content_moderation_integration\Plugin\Validation\Constraint\PublishStateConstraint extends \Symfony\Component\Validator\Constraint

Expanded class hierarchy of PublishStateConstraint

File

src/Plugin/Validation/Constraint/PublishStateConstraint.php, line 16

Namespace

Drupal\scheduler_content_moderation_integration\Plugin\Validation\Constraint
View source
class PublishStateConstraint extends Constraint {

  /**
   * Publish state invalid transition message.
   *
   * Message to display on invalid publishing transition between the nodes
   * current moderation state to the specified publishing state.
   *
   * @var string
   */
  public $invalidTransitionMessage = 'The scheduled publishing state of %publish_state is not a valid transition from the current moderation state of %content_state for this content.';

}

Members

Namesort descending Modifiers Type Description Overrides
PublishStateConstraint::$invalidTransitionMessage public property Publish state invalid transition message.