StateTransitionValidation::getPossibleTransitions

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;
}
doc_Drupal
2016-10-29 09:44:17
Comments
Leave a Comment

Please login to continue.