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\ConstraintView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PublishStateConstraint:: |
public | property | Publish state invalid transition message. |