function WorkflowTypeBase::hasTransition

Same name and namespace in other branches
  1. 11.x core/modules/workflows/src/Plugin/WorkflowTypeBase.php \Drupal\workflows\Plugin\WorkflowTypeBase::hasTransition()

File

core/modules/workflows/src/Plugin/WorkflowTypeBase.php, line 329

Class

WorkflowTypeBase
A base class for Workflow type plugins.

Namespace

Drupal\workflows\Plugin

Code

public function hasTransition($transition_id) {
  return isset($this->configuration['transitions'][$transition_id]);
}

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