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; }
Please login to continue.