class TransitionAccessConstraint in Scheduler content moderation integration 8
Validates content moderation transition access.
Plugin annotation
@Constraint(
id = "SchedulerModerationTransitionAccess",
label = @Translation("Scheduler content moderation transition access validation", context = "Validation"),
type = "entity:node"
)
Hierarchy
- class \Drupal\scheduler_content_moderation_integration\Plugin\Validation\Constraint\TransitionAccessConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of TransitionAccessConstraint
File
- src/
Plugin/ Validation/ Constraint/ TransitionAccessConstraint.php, line 16
Namespace
Drupal\scheduler_content_moderation_integration\Plugin\Validation\ConstraintView source
class TransitionAccessConstraint extends Constraint {
/**
* No access message.
*
* @var string
*/
public $noAccessMessage = 'You do not have access to transition from %original_state to %new_state';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TransitionAccessConstraint:: |
public | property | No access message. |