function Transition::from

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

Overrides TransitionInterface::from

File

core/modules/workflows/src/Transition.php, line 94

Class

Transition
A transition value object that describes the transition between states.

Namespace

Drupal\workflows

Code

public function from() {
    return $this->workflow
        ->getStates($this->fromStateIds);
}

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