public static function State::labelCallback in Drupal 9
Same name and namespace in other branches
- 8 core/modules/workflows/src/State.php \Drupal\workflows\State::labelCallback()
Helper method to convert a State value object to a label.
Parameters
\Drupal\workflows\StateInterface $state:
Return value
string The label of the state.
File
- core/
modules/ workflows/ src/ State.php, line 110
Class
- State
- A value object representing a workflow state.
Namespace
Drupal\workflowsCode
public static function labelCallback(StateInterface $state) {
return $state
->label();
}