function ContentModerationState::label

Same name in other branches
  1. 9 core/modules/content_moderation/src/ContentModerationState.php \Drupal\content_moderation\ContentModerationState::label()
  2. 8.9.x core/modules/content_moderation/src/ContentModerationState.php \Drupal\content_moderation\ContentModerationState::label()
  3. 10 core/modules/content_moderation/src/ContentModerationState.php \Drupal\content_moderation\ContentModerationState::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_moderation

Code

public function label() {
    return $this->state
        ->label();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.