function ModerationInformationInterface::hasPendingRevision

Same name and namespace in other branches
  1. 9 core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::hasPendingRevision()
  2. 10 core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::hasPendingRevision()
  3. 11.x core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::hasPendingRevision()

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.

1 method overrides ModerationInformationInterface::hasPendingRevision()
ModerationInformation::hasPendingRevision in core/modules/content_moderation/src/ModerationInformation.php
Determines if a pending revision exists for the specified entity.

File

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

Class

ModerationInformationInterface
Interface for moderation_information service.

Namespace

Drupal\content_moderation

Code

public function hasPendingRevision(ContentEntityInterface $entity);

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