class UnPublishStateConstraint in Scheduler content moderation integration 8
Validates scheduler un-publish state.
Plugin annotation
@Constraint(
id = "SchedulerUnPublishState",
label = @Translation("Scheduler un-publish state validation", context = "Validation"),
type = "entity:node"
)
Hierarchy
- class \Drupal\scheduler_content_moderation_integration\Plugin\Validation\Constraint\UnPublishStateConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of UnPublishStateConstraint
File
- src/
Plugin/ Validation/ Constraint/ UnPublishStateConstraint.php, line 16
Namespace
Drupal\scheduler_content_moderation_integration\Plugin\Validation\ConstraintView source
class UnPublishStateConstraint extends Constraint {
/**
* Invalid publish to publish transition message.
*
* Message to display when the transition between the scheduled publishing
* state and the scheduled un-publishing state is not a valid transition.
*
* @var string
*/
public $invalidPublishToUnPublishTransitionMessage = 'The scheduled un-publishing state of %unpublish_state is not a valid transition from the scheduled publishing state of %publish_state.';
/**
* Invalid unpublish transition message.
*
* Message to display when the transition between the notes current
* moderation state to the scheduled un-publishing state is not a
* valid transition.
*
* @var string
*/
public $invalidUnPublishTransitionMessage = 'The scheduled un-publishing state of %unpublish_state is not a valid transition from the current moderation state of %content_state for this content.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UnPublishStateConstraint:: |
public | property | Invalid publish to publish transition message. | |
UnPublishStateConstraint:: |
public | property | Invalid unpublish transition message. |