ModerationInformationInterface::getDefaultRevisionId

public ModerationInformationInterface::getDefaultRevisionId($entity_type_id, $entity_id)

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

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

Class

ModerationInformationInterface
Interface for moderation_information service.

Namespace

Drupal\content_moderation

Code

public function getDefaultRevisionId($entity_type_id, $entity_id);
doc_Drupal
2016-10-29 09:28:34
Comments
Leave a Comment

Please login to continue.