protected function AcquiadamController::getAsset in Media: Acquia DAM 8
Get an asset.
Parameters
int $assetId: The asset ID for the asset to render details for.
Return value
\cweagans\webdam\Entity\Asset|false The asset or FALSE on failure.
2 calls to AcquiadamController::getAsset()
- AcquiadamController::assetDetailsPage in src/
Controller/ AcquiadamController.php - Render a page that includes details about an asset.
- AcquiadamController::assetDetailsPageTitle in src/
Controller/ AcquiadamController.php - Sets the asset details page title.
File
- src/
Controller/ AcquiadamController.php, line 71
Class
- AcquiadamController
- Controller routines for Acquia DAM routes.
Namespace
Drupal\media_acquiadam\ControllerCode
protected function getAsset($assetId) {
if (!isset($this->asset)) {
$this->asset = $this->acquiadam
->getAsset($assetId, TRUE);
}
return $this->asset;
}