protected StateTransitionValidation::getTransitionsFrom($state_name)
Returns a list of possible transitions from a given state.
This list is based only on those transitions that exist, not what transitions are legal in a given context.
Parameters
string $state_name: The machine name of the state from which we are transitioning.
Return value
ModerationStateTransition[] A list of possible transitions from a given state.
File
- core/modules/content_moderation/src/StateTransitionValidation.php, line 147
Class
- StateTransitionValidation
- Validates whether a certain state transition is allowed.
Namespace
Drupal\content_moderation
Code
protected function getTransitionsFrom($state_name) { $result = $this->transitionStateQuery() ->condition('stateFrom', $state_name) ->sort('weight') ->execute(); return $this->transitionStorage()->loadMultiple($result); }
Please login to continue.