You are here

public function ConfigEntityRevisionsRevisionStorageHandlerInterface::resetDefaultRevision in Config Entity Revisions 8.2

Make default the most recently published or the most recent revision.

This is needed because content_moderation has a concept of a default revision, which this module doesn't really care about, but which will cause problems if we attempt to delete a revision that's marked as the default.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $content_entity: The content (revisions) entity.

1 method overrides ConfigEntityRevisionsRevisionStorageHandlerInterface::resetDefaultRevision()
ConfigEntityRevisionsRevisionStorageHandler::resetDefaultRevision in src/Entity/Handler/ConfigEntityRevisionsRevisionStorageHandler.php
Make default the most recently published or most recent revision.

File

src/ConfigEntityRevisionsRevisionStorageHandlerInterface.php, line 126

Class

ConfigEntityRevisionsRevisionStorageHandlerInterface
Interface ConfigEntityRevisionsRevisionStorageHandlerInterface.

Namespace

Drupal\config_entity_revisions

Code

public function resetDefaultRevision(ContentEntityInterface $content_entity);