function WorkflowTypeBase::hasTransitionFromStateToState

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

Overrides WorkflowTypeInterface::hasTransitionFromStateToState

1 call to WorkflowTypeBase::hasTransitionFromStateToState()
WorkflowTypeBase::setTransitionFromStates in core/modules/workflows/src/Plugin/WorkflowTypeBase.php
Sets a transition's from states.

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;
}

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