protected StateTransitionValidation::getPossibleTransitions()
Returns a mapping of possible transitions.
Return value
array[] An array containing all possible transitions. Each entry is keyed by the "from" state, and the value is an array of all legal "to" states based on the currently defined transition objects.
File
- core/modules/content_moderation/src/StateTransitionValidation.php, line 82
Class
- StateTransitionValidation
- Validates whether a certain state transition is allowed.
Namespace
Drupal\content_moderation
Code
protected function getPossibleTransitions() { if (empty($this->possibleTransitions)) { $this->possibleTransitions = $this->calculatePossibleTransitions(); } return $this->possibleTransitions; }
Please login to continue.