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