You are here

public function ContentModerationState::id in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/content_moderation/src/ContentModerationState.php \Drupal\content_moderation\ContentModerationState::id()

Gets the state's ID.

Return value

string The state's ID.

Overrides StateInterface::id

File

core/modules/content_moderation/src/ContentModerationState.php, line 75

Class

ContentModerationState
A value object representing a workflow state for content moderation.

Namespace

Drupal\content_moderation

Code

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