public function State::weight in Drupal 9
Same name and namespace in other branches
- 8 core/modules/workflows/src/State.php \Drupal\workflows\State::weight()
Gets the state's weight.
Return value
int The state's weight.
Overrides StateInterface::weight
File
- core/
modules/ workflows/ src/ State.php, line 74
Class
- State
- A value object representing a workflow state.
Namespace
Drupal\workflowsCode
public function weight() {
return $this->weight;
}