You are here

public function State::getTransitions in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/workflows/src/State.php \Drupal\workflows\State::getTransitions()

Gets all the possible transition objects for the state.

Return value

\Drupal\workflows\TransitionInterface[] All the possible transition objects for the state.

Overrides StateInterface::getTransitions

File

core/modules/workflows/src/State.php, line 98

Class

State
A value object representing a workflow state.

Namespace

Drupal\workflows

Code

public function getTransitions() {
  return $this->workflow
    ->getTransitionsForState($this->id);
}