StateTransitionValidationInterface
interface StateTransitionValidationInterface (View source)
Validates whether a certain state transition is allowed.
Methods
getValidTransitions(ContentEntityInterface $entity, AccountInterface $user)
Gets a list of transitions that are legal for this user on this entity.
bool
isTransitionValid(WorkflowInterface $workflow, StateInterface $original_state, StateInterface $new_state, AccountInterface $user, ContentEntityInterface $entity)
Checks if a transition between two states if valid for the given user.
Details
Transition[]
getValidTransitions(ContentEntityInterface $entity, AccountInterface $user)
Gets a list of transitions that are legal for this user on this entity.
bool
isTransitionValid(WorkflowInterface $workflow, StateInterface $original_state, StateInterface $new_state, AccountInterface $user, ContentEntityInterface $entity)
Checks if a transition between two states if valid for the given user.