You are here

public function WorkflowTypeBase::hasTransitionFromStateToState in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/workflows/src/Plugin/WorkflowTypeBase.php \Drupal\workflows\Plugin\WorkflowTypeBase::hasTransitionFromStateToState()
  2. 9 core/modules/workflows/src/Plugin/WorkflowTypeBase.php \Drupal\workflows\Plugin\WorkflowTypeBase::hasTransitionFromStateToState()

File

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

Class

WorkflowTypeBase
A base class for Workflow type plugins.

Namespace

Drupal\workflows\Plugin

Code

public function hasTransitionFromStateToState($from_state_id, $to_state_id) {
  return $this
    ->getTransitionIdFromStateToState($from_state_id, $to_state_id) !== NULL;
}