You are here

public function Transition::label in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/workflows/src/Transition.php \Drupal\workflows\Transition::label()
  2. 10 core/modules/workflows/src/Transition.php \Drupal\workflows\Transition::label()

Gets the transition's label.

Return value

string The transition's label.

Overrides TransitionInterface::label

File

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

Class

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

Namespace

Drupal\workflows

Code

public function label() {
  return $this->label;
}