You are here

public function ModerationInformationInterface::hasPendingRevision in Config Entity Revisions 8.2

Determines if a pending revision exists for the specified entity.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The entity which may or may not have a pending revision.

Return value

bool TRUE if this entity has pending revisions available, FALSE otherwise.

File

src/ModerationInformationInterface.php, line 127

Class

ModerationInformationInterface
Interface for moderation_information service.

Namespace

Drupal\config_entity_revisions

Code

public function hasPendingRevision(ContentEntityInterface $entity);