StateTransitionValidation

Validates whether a certain state transition is allowed.

Hierarchy

File

core/modules/content_moderation/src/StateTransitionValidation.php, line 14

Namespace

Drupal\content_moderation

Members

Name Modifiers Type Description
StateTransitionValidation::$entityTypeManager protected property Entity type manager.
StateTransitionValidation::$possibleTransitions protected property Stores the possible state transitions.
StateTransitionValidation::$queryFactory protected property Entity query factory.
StateTransitionValidation::calculatePossibleTransitions protected function Computes a mapping of possible transitions.
StateTransitionValidation::getPossibleTransitions protected function Returns a mapping of possible transitions.
StateTransitionValidation::getTransitionFromStates protected function Returns the transition object that transitions from one state to another.
StateTransitionValidation::getTransitionsFrom protected function Returns a list of possible transitions from a given state.
StateTransitionValidation::getValidTransitions public function Gets a list of transitions that are legal for this user on this entity. Overrides StateTransitionValidationInterface::getValidTransitions
StateTransitionValidation::getValidTransitionTargets public function Gets a list of states a user may transition an entity to. Overrides StateTransitionValidationInterface::getValidTransitionTargets
StateTransitionValidation::isTransitionAllowed public function Determines a transition allowed. Overrides StateTransitionValidationInterface::isTransitionAllowed
StateTransitionValidation::loadBundleEntity protected function Loads a specific bundle entity.
StateTransitionValidation::stateStorage protected function Returns the state entity storage service.
StateTransitionValidation::transitionStateQuery protected function Returns a transition state entity query.
StateTransitionValidation::transitionStorage protected function Returns the transition entity storage service.
StateTransitionValidation::userMayTransition public function Determines if a user is allowed to transition from one state to another. Overrides StateTransitionValidationInterface::userMayTransition
StateTransitionValidation::__construct public function Constructs a new StateTransitionValidation.
doc_Drupal
2016-10-29 09:44:16
Comments
Leave a Comment

Please login to continue.