public function ModerationInformationInterface::hasPendingRevision in Drupal 9
Same name and namespace in other branches
- 8 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 95
Class
- ModerationInformationInterface
- Interface for moderation_information service.
Namespace
Drupal\content_moderationCode
public function hasPendingRevision(ContentEntityInterface $entity);