public function ModerationInformationInterface::hasPendingRevision in Drupal 8
Same name and namespace in other branches
- 9 core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::hasPendingRevision()
- 10 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_moderationCode
public function hasPendingRevision(ContentEntityInterface $entity);