ModerationInformationInterface::isLiveRevision

public ModerationInformationInterface::isLiveRevision(ContentEntityInterface $entity)

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.

File

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

Class

ModerationInformationInterface
Interface for moderation_information service.

Namespace

Drupal\content_moderation

Code

public function isLiveRevision(ContentEntityInterface $entity);
doc_Drupal
2016-10-29 09:28:35
Comments
Leave a Comment

Please login to continue.