function ModerationInformationInterface::getDefaultRevisionId
Same name in other branches
- 8.9.x core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::getDefaultRevisionId()
- 10 core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::getDefaultRevisionId()
- 11.x core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::getDefaultRevisionId()
Returns the revision ID of the default revision for the specified entity.
Parameters
string $entity_type_id: The entity type ID.
int $entity_id: The entity ID.
Return value
int The revision ID of the default revision, or NULL if the entity was not found.
1 method overrides ModerationInformationInterface::getDefaultRevisionId()
- ModerationInformation::getDefaultRevisionId in core/
modules/ content_moderation/ src/ ModerationInformation.php - Returns the revision ID of the default revision for the specified entity.
File
-
core/
modules/ content_moderation/ src/ ModerationInformationInterface.php, line 73
Class
- ModerationInformationInterface
- Interface for moderation_information service.
Namespace
Drupal\content_moderationCode
public function getDefaultRevisionId($entity_type_id, $entity_id);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.