You are here

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\Constraint
View 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