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