public function SupportTicketController::revisionPageTitle in Support Ticketing System 8
Page title callback for a support ticket revision.
Parameters
int $support_ticket_revision: The support ticket revision ID.
Return value
string The page title.
1 string reference to 'SupportTicketController::revisionPageTitle'
- support_ticket.routing.yml in modules/
support_ticket/ support_ticket.routing.yml - modules/support_ticket/support_ticket.routing.yml
File
- modules/
support_ticket/ src/ Controller/ SupportTicketController.php, line 149 - Contains \Drupal\support_ticket\Controller\SupportTicketController.
Class
- SupportTicketController
- Returns responses for Support Ticket routes.
Namespace
Drupal\support_ticket\ControllerCode
public function revisionPageTitle($support_ticket_revision) {
$support_ticket = $this
->entityManager()
->getStorage('support_ticket')
->loadRevision($support_ticket_revision);
return $this
->t('Revision of %title from %date', array(
'%title' => $support_ticket
->label(),
'%date' => format_date($support_ticket
->getRevisionCreationTime()),
));
}