public function DataPolicy::revisionOverviewTitle in Open Social 8.5
Same name and namespace in other branches
- 8.9 modules/custom/social_gdpr/src/Controller/DataPolicy.php \Drupal\social_gdpr\Controller\DataPolicy::revisionOverviewTitle()
- 8.2 modules/custom/social_gdpr/src/Controller/DataPolicy.php \Drupal\social_gdpr\Controller\DataPolicy::revisionOverviewTitle()
- 8.3 modules/custom/social_gdpr/src/Controller/DataPolicy.php \Drupal\social_gdpr\Controller\DataPolicy::revisionOverviewTitle()
- 8.4 modules/custom/social_gdpr/src/Controller/DataPolicy.php \Drupal\social_gdpr\Controller\DataPolicy::revisionOverviewTitle()
- 8.6 modules/custom/social_gdpr/src/Controller/DataPolicy.php \Drupal\social_gdpr\Controller\DataPolicy::revisionOverviewTitle()
- 8.7 modules/custom/social_gdpr/src/Controller/DataPolicy.php \Drupal\social_gdpr\Controller\DataPolicy::revisionOverviewTitle()
- 8.8 modules/custom/social_gdpr/src/Controller/DataPolicy.php \Drupal\social_gdpr\Controller\DataPolicy::revisionOverviewTitle()
- 10.0.x modules/custom/social_gdpr/src/Controller/DataPolicy.php \Drupal\social_gdpr\Controller\DataPolicy::revisionOverviewTitle()
- 10.1.x modules/custom/social_gdpr/src/Controller/DataPolicy.php \Drupal\social_gdpr\Controller\DataPolicy::revisionOverviewTitle()
Page title callback for a Data policy revision.
Parameters
int $data_policy_revision: The Data policy revision ID.
Return value
string The page title.
Overrides DataPolicy::revisionOverviewTitle
1 string reference to 'DataPolicy::revisionOverviewTitle'
- social_gdpr.routing.yml in modules/
custom/ social_gdpr/ social_gdpr.routing.yml - modules/custom/social_gdpr/social_gdpr.routing.yml
File
- modules/
custom/ social_gdpr/ src/ Controller/ DataPolicy.php, line 33
Class
- DataPolicy
- Class DataPolicy.
Namespace
Drupal\social_gdpr\ControllerCode
public function revisionOverviewTitle($data_policy_revision) {
/** @var \Drupal\data_policy\Entity\DataPolicyInterface $data_policy */
$data_policy = $this
->entityTypeManager()
->getStorage('data_policy')
->loadRevision($data_policy_revision);
return $this
->t('Revision from %date', [
'%date' => $this
->dateFormatter()
->format($data_policy
->getRevisionCreationTime()),
]);
}