public function PredefinedStatesWorkflowTestType::setStateWeight in Drupal 8
Same name and namespace in other branches
- 9 core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/PredefinedStatesWorkflowTestType.php \Drupal\workflow_type_test\Plugin\WorkflowType\PredefinedStatesWorkflowTestType::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
Overrides WorkflowTypeBase::setStateWeight
File
- core/
modules/ workflows/ tests/ modules/ workflow_type_test/ src/ Plugin/ WorkflowType/ PredefinedStatesWorkflowTestType.php, line 76
Class
- PredefinedStatesWorkflowTestType
- Test workflow type.
Namespace
Drupal\workflow_type_test\Plugin\WorkflowTypeCode
public function setStateWeight($state_id, $weight) {
// States cannot be altered on this workflow.
return $this;
}