function 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.

Deprecated

in drupal:8.8.0 and is removed from drupal:9.0.0. Use RevisionableInterface::isLatestRevision instead.

See also

https://www.drupal.org/node/3087295

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

File

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

Class

ModerationInformationInterface
Interface for moderation_information service.

Namespace

Drupal\content_moderation

Code

public function isLatestRevision(ContentEntityInterface $entity);

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