function WorkflowTypeInterface::setStateLabel
Same name in other branches
- 9 core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::setStateLabel()
- 8.9.x core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::setStateLabel()
- 10 core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::setStateLabel()
Sets a state's label.
Parameters
string $state_id: The state ID to set the label for.
string $label: The state's label.
Return value
$this
1 method overrides WorkflowTypeInterface::setStateLabel()
- WorkflowTypeBase::setStateLabel in core/
modules/ workflows/ src/ Plugin/ WorkflowTypeBase.php - Sets a state's label.
File
-
core/
modules/ workflows/ src/ WorkflowTypeInterface.php, line 159
Class
- WorkflowTypeInterface
- An interface for Workflow type plugins.
Namespace
Drupal\workflowsCode
public function setStateLabel($state_id, $label);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.