You are here

public function ContentModerationState::isDefaultRevisionState in Drupal 10

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

Determines if entities should be the default revision if in this state.

Return value

bool

File

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

Class

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

Namespace

Drupal\content_moderation

Code

public function isDefaultRevisionState() {
  return $this->defaultRevision;
}