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