You are here

public function WorkflowTransition::getLabel in State Machine 8

Gets the translated label.

Return value

string The translated label.

File

src/Plugin/Workflow/WorkflowTransition.php, line 73

Class

WorkflowTransition
Defines the class for workflow transitions.

Namespace

Drupal\state_machine\Plugin\Workflow

Code

public function getLabel() {
  return (string) t($this->label, [], [
    'context' => 'workflow transition',
  ]);
}