You are here

public function ModerationInformationInterface::getDefaultRevisionId in Config Entity Revisions 8.2

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.

File

src/ModerationInformationInterface.php, line 93

Class

ModerationInformationInterface
Interface for moderation_information service.

Namespace

Drupal\config_entity_revisions

Code

public function getDefaultRevisionId($entity_type_id, $entity_id);