You are here

public function ContentModerationState::getTransitions in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/content_moderation/src/ContentModerationState.php \Drupal\content_moderation\ContentModerationState::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/content_moderation/src/ContentModerationState.php, line 110

Class

ContentModerationState
A value object representing a workflow state for content moderation.

Namespace

Drupal\content_moderation

Code

public function getTransitions() {
  return $this->state
    ->getTransitions();
}