You are here

public function ModerationInformationInterface::isDefaultRevisionPublished in Config Entity Revisions 8.2

Determines if the default revision for the given entity is published.

The default revision is the same as the entity retrieved by "default" from the storage handler. If the entity is translated, check if any of the translations are published.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The entity being saved.

Return value

bool TRUE if the default revision is published. FALSE otherwise.

File

src/ModerationInformationInterface.php, line 156

Class

ModerationInformationInterface
Interface for moderation_information service.

Namespace

Drupal\config_entity_revisions

Code

public function isDefaultRevisionPublished(ContentEntityInterface $entity);