public function EasyEmailController::revisionPageTitle in Easy Email 8
Same name and namespace in other branches
- 2.0.x src/Controller/EasyEmailController.php \Drupal\easy_email\Controller\EasyEmailController::revisionPageTitle()
Page title callback for a Email revision.
Parameters
int $easy_email_revision: The Email revision ID.
Return value
string The page title.
File
- src/
Controller/ EasyEmailController.php, line 165
Class
- EasyEmailController
- Class EasyEmailController.
Namespace
Drupal\easy_email\ControllerCode
public function revisionPageTitle($easy_email_revision) {
$easy_email = $this
->entityTypeManager()
->getStorage('easy_email')
->loadRevision($easy_email_revision);
return $this
->t('Revision of %title from %date', [
'%title' => $easy_email
->label(),
'%date' => \Drupal::service('date.formatter')
->format($easy_email
->getRevisionCreationTime()),
]);
}