You are here

public function Transition::to in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/workflows/src/Transition.php \Drupal\workflows\Transition::to()
  2. 9 core/modules/workflows/src/Transition.php \Drupal\workflows\Transition::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);
}