function StateInterface::getTransitions

Same name in other branches
  1. 9 core/modules/workflows/src/StateInterface.php \Drupal\workflows\StateInterface::getTransitions()
  2. 8.9.x core/modules/workflows/src/StateInterface.php \Drupal\workflows\StateInterface::getTransitions()
  3. 11.x core/modules/workflows/src/StateInterface.php \Drupal\workflows\StateInterface::getTransitions()

Gets all the possible transition objects for the state.

Return value

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

2 methods override StateInterface::getTransitions()
ContentModerationState::getTransitions in core/modules/content_moderation/src/ContentModerationState.php
State::getTransitions in core/modules/workflows/src/State.php

File

core/modules/workflows/src/StateInterface.php, line 74

Class

StateInterface
An interface for state value objects.

Namespace

Drupal\workflows

Code

public function getTransitions();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.