function StateInterface::weight
Same name in other branches
- 8.9.x core/modules/workflows/src/StateInterface.php \Drupal\workflows\StateInterface::weight()
- 10 core/modules/workflows/src/StateInterface.php \Drupal\workflows\StateInterface::weight()
- 11.x core/modules/workflows/src/StateInterface.php \Drupal\workflows\StateInterface::weight()
Gets the state's weight.
Return value
int The state's weight.
2 methods override StateInterface::weight()
- ContentModerationState::weight in core/
modules/ content_moderation/ src/ ContentModerationState.php - Gets the state's weight.
- State::weight in core/
modules/ workflows/ src/ State.php - Gets the state's weight.
File
-
core/
modules/ workflows/ src/ StateInterface.php, line 41
Class
- StateInterface
- An interface for state value objects.
Namespace
Drupal\workflowsCode
public function weight();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.