protected function EntityRenderHandler::getAllRenderUuids in Acquia Lift Connector 8.4
Get all rendered content UUIDs for a given source entity.
Parameters
string $source_entity_uuid: The source entity CDF.
Return value
mixed The UUIDs.
1 call to EntityRenderHandler::getAllRenderUuids()
- EntityRenderHandler::getRenderUuid in modules/
acquia_lift_publisher/ src/ EventSubscriber/ Cdf/ EntityRenderHandler.php - Get rendered content UUID for given source entity view mode and language.
File
- modules/
acquia_lift_publisher/ src/ EventSubscriber/ Cdf/ EntityRenderHandler.php, line 426
Class
- EntityRenderHandler
- Class EntityRenderHandler.
Namespace
Drupal\acquia_lift_publisher\EventSubscriber\CdfCode
protected function getAllRenderUuids($source_entity_uuid) {
if (!$this
->storageIsAlreadyWarmedUp($source_entity_uuid)) {
$response = $this->clientFactory
->getClient()
->listEntities([
'type' => 'rendered_entity',
'origin' => $this->origin,
'fields' => 'language,view_mode,source_entity',
'filters' => [
'source_entity' => $source_entity_uuid,
],
]);
if (TRUE === $response['success'] && !empty($response['data'])) {
$this
->storageWarmUp($response['data'], $source_entity_uuid);
}
}
return $this
->getStorageAllItems($source_entity_uuid);
}