function ModerationInformationInterface::isDefaultRevisionPublished

Same name in other branches
  1. 8.9.x core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::isDefaultRevisionPublished()
  2. 10 core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::isDefaultRevisionPublished()
  3. 11.x core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::isDefaultRevisionPublished()

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.

1 method overrides ModerationInformationInterface::isDefaultRevisionPublished()
ModerationInformation::isDefaultRevisionPublished in core/modules/content_moderation/src/ModerationInformation.php
Determines if the default revision for the given entity is published.

File

core/modules/content_moderation/src/ModerationInformationInterface.php, line 124

Class

ModerationInformationInterface
Interface for moderation_information service.

Namespace

Drupal\content_moderation

Code

public function isDefaultRevisionPublished(ContentEntityInterface $entity);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.