You are here

public function ModerationInformationInterface::isLiveRevision in Workbench Moderation 8.2

Same name and namespace in other branches
  1. 8 src/ModerationInformationInterface.php \Drupal\workbench_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 src/ModerationInformation.php
Determines if an entity is "live".

File

src/ModerationInformationInterface.php, line 210

Class

ModerationInformationInterface
Interface for moderation_information service.

Namespace

Drupal\workbench_moderation

Code

public function isLiveRevision(ContentEntityInterface $entity);