function ModerationStateConstraint::__construct
Attributes
#[HasNamedArguments]
File
-
core/
modules/ content_moderation/ src/ Plugin/ Validation/ Constraint/ ModerationStateConstraint.php, line 19
Class
- ModerationStateConstraint
- Verifies that nodes have a valid moderation state.
Namespace
Drupal\content_moderation\Plugin\Validation\ConstraintCode
public function __construct(mixed $options = NULL, public $message = 'Invalid state transition from %from to %to', public $invalidStateMessage = 'State %state does not exist on %workflow workflow', public $invalidTransitionAccess = 'You do not have access to transition from %original_state to %new_state', ?array $groups = NULL, mixed $payload = NULL) {
parent::__construct($options, $groups, $payload);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.