You are here

public function SupportTicketViewController::title in Support Ticketing System 8

The _title_callback for the page that renders a single support ticket.

Parameters

\Drupal\Core\Entity\EntityInterface $support_ticket: The current support ticket.

Return value

string The page title.

File

modules/support_ticket/src/Controller/SupportTicketViewController.php, line 59
Contains \Drupal\support_ticket\Controller\SupportTicketViewController.

Class

SupportTicketViewController
Defines a controller to render a single support ticket.

Namespace

Drupal\support_ticket\Controller

Code

public function title(EntityInterface $support_ticket) {
  return $this->entityManager
    ->getTranslationFromContext($support_ticket)
    ->label();
}