function Transition::to

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

Overrides TransitionInterface::to

File

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

Class

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

Namespace

Drupal\workflows

Code

public function to() {
    return $this->workflow
        ->getState($this->toStateId);
}

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