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