public function DataPolicy::revisionOverviewTitle in Data Policy 8
Page title callback for a Data policy revision.
Parameters
int $data_policy_revision: The Data policy revision ID.
Return value
string The page title.
File
- src/
Controller/ DataPolicy.php, line 185
Class
- DataPolicy
- Class DataPolicy.
Namespace
Drupal\data_policy\ControllerCode
public function revisionOverviewTitle($data_policy_revision) {
$data_policy = $this
->entityTypeManager()
->getStorage('data_policy')
->loadRevision($data_policy_revision);
return $this
->t('Data policy revision from %date', [
'%date' => $this->dateFormatter
->format($data_policy
->getRevisionCreationTime()),
]);
}