function WorkflowTypeInterface::hasTransition

Same name in other branches
  1. 9 core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::hasTransition()
  2. 8.9.x core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::hasTransition()
  3. 10 core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::hasTransition()

Determines if a transition exists.

Parameters

string $transition_id: The transition ID.

Return value

bool TRUE if the transition exists, FALSE if not.

1 method overrides WorkflowTypeInterface::hasTransition()
WorkflowTypeBase::hasTransition in core/modules/workflows/src/Plugin/WorkflowTypeBase.php
Determines if a transition exists.

File

core/modules/workflows/src/WorkflowTypeInterface.php, line 229

Class

WorkflowTypeInterface
An interface for Workflow type plugins.

Namespace

Drupal\workflows

Code

public function hasTransition($transition_id);

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