public function WorkflowState::getLabel in State Machine 8
Gets the translated label.
Return value
string The translated label.
1 call to WorkflowState::getLabel()
- WorkflowState::__toString in src/
Plugin/ Workflow/ WorkflowState.php - Gets the string representation of the workflow state.
File
- src/
Plugin/ Workflow/ WorkflowState.php, line 53
Class
- WorkflowState
- Defines the class for workflow states.
Namespace
Drupal\state_machine\Plugin\WorkflowCode
public function getLabel() {
return (string) t($this->label, [], [
'context' => 'workflow state',
]);
}