protected function EntityShareClientFunctionalTestBase::getEntityRevisionId in Entity Share 8.2
Same name and namespace in other branches
- 8.3 modules/entity_share_client/tests/src/Functional/EntityShareClientFunctionalTestBase.php \Drupal\Tests\entity_share_client\Functional\EntityShareClientFunctionalTestBase::getEntityRevisionId()
Helper function.
Parameters
string $entity_type_id: The entity type id.
string $entity_uuid: Then entity UUID.
Return value
string Return the entity revision ID if it exists. Empty string otherwise.
2 calls to EntityShareClientFunctionalTestBase::getEntityRevisionId()
- ParagraphEntityReferenceTest::getEntitiesDataArray in modules/
entity_share_client/ tests/ src/ Functional/ ParagraphEntityReferenceTest.php - Helper function to get a mapping of the entities data.
- ParagraphEntityReferenceTest::getExpectedParagraphReferenceValue in modules/
entity_share_client/ tests/ src/ Functional/ ParagraphEntityReferenceTest.php - Helper function.
File
- modules/
entity_share_client/ tests/ src/ Functional/ EntityShareClientFunctionalTestBase.php, line 740
Class
- EntityShareClientFunctionalTestBase
- Base class for Entity share server functional tests.
Namespace
Drupal\Tests\entity_share_client\FunctionalCode
protected function getEntityRevisionId($entity_type_id, $entity_uuid) {
$existing_entity_id = '';
$existing_entity = $this
->loadEntity($entity_type_id, $entity_uuid);
if (!is_null($existing_entity) && $existing_entity instanceof RevisionableInterface) {
$existing_entity_id = $existing_entity
->getRevisionId();
}
return $existing_entity_id;
}