You are here

public function AcquiadamController::assetDetailsPageTitle in Media: Acquia DAM 8

Sets the asset details page title.

Parameters

int $assetId: The asset ID for the asset to render title for.

Return value

string The asset details page title.

File

src/Controller/AcquiadamController.php, line 54

Class

AcquiadamController
Controller routines for Acquia DAM routes.

Namespace

Drupal\media_acquiadam\Controller

Code

public function assetDetailsPageTitle($assetId) {
  $asset = $this
    ->getAsset($assetId);
  return $this
    ->t("Asset details: %filename", [
    '%filename' => $asset->filename,
  ]);
}