ModerationState::isDefaultRevisionState

public ModerationState::isDefaultRevisionState()

Determines if content updated to this state should be the default revision.

Return value

bool TRUE if content in this state should be the default revision.

Overrides ModerationStateInterface::isDefaultRevisionState

File

core/modules/content_moderation/src/Entity/ModerationState.php, line 98

Class

ModerationState
Defines the Moderation state entity.

Namespace

Drupal\content_moderation\Entity

Code

public function isDefaultRevisionState() {
  return $this->published || $this->default_revision;
}
doc_Drupal
2016-10-29 09:28:39
Comments
Leave a Comment

Please login to continue.