function ModerationInformationInterface::isLiveRevision
Same name in other branches
- 8.9.x core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::isLiveRevision()
- 10 core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::isLiveRevision()
- 11.x core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::isLiveRevision()
Determines if an entity is "live".
A "live" entity revision is one whose latest revision is also the default, and whose moderation state, if any, is a published state.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The entity to check.
Return value
bool TRUE if the specified entity is a live revision, FALSE otherwise.
1 method overrides ModerationInformationInterface::isLiveRevision()
- ModerationInformation::isLiveRevision in core/
modules/ content_moderation/ src/ ModerationInformation.php - Determines if an entity is "live".
File
-
core/
modules/ content_moderation/ src/ ModerationInformationInterface.php, line 109
Class
- ModerationInformationInterface
- Interface for moderation_information service.
Namespace
Drupal\content_moderationCode
public function isLiveRevision(ContentEntityInterface $entity);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.