You are here

public function ModerationInformationInterface::isLatestRevision in Workbench Moderation 8

Same name and namespace in other branches
  1. 8.2 src/ModerationInformationInterface.php \Drupal\workbench_moderation\ModerationInformationInterface::isLatestRevision()

Determines if an entity is a latest revision.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: A revisionable Content entity.

Return value

bool TRUE if the specified object is the latest revision of its entity, FALSE otherwise.

1 method overrides ModerationInformationInterface::isLatestRevision()
ModerationInformation::isLatestRevision in src/ModerationInformation.php
Determines if an entity is a latest revision.

File

src/ModerationInformationInterface.php, line 184

Class

ModerationInformationInterface
Interface for moderation_information service.

Namespace

Drupal\workbench_moderation

Code

public function isLatestRevision(ContentEntityInterface $entity);