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