function support_ticket_preprocess_html in Support Ticketing System 8
Implements hook_preprocess_HOOK() for HTML document templates.
File
- modules/
support_ticket/ support_ticket.module, line 459 - Enables use of support tickets with optional time tracking.
Code
function support_ticket_preprocess_html(&$variables) {
// If on an individual support ticket page, add the support ticket type to body
// classes.
if (($support_ticket = \Drupal::routeMatch()
->getParameter('support_ticket')) && $support_ticket instanceof SupportTicketInterface) {
$variables['support_ticket_type'] = $support_ticket
->getType();
}
}