You are here

public function SupportTicketPreviewController::title in Support Ticketing System 8

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

Parameters

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

Return value

string The page title.

1 string reference to 'SupportTicketPreviewController::title'
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/SupportTicketPreviewController.php, line 63
Contains \Drupal\support_ticket\Controller\SupportTicketPreviewController.

Class

SupportTicketPreviewController
Defines a controller to render a single support ticket in preview.

Namespace

Drupal\support_ticket\Controller

Code

public function title(EntityInterface $support_ticket_preview) {
  return SafeMarkup::checkPlain($this->entityManager
    ->getTranslationFromContext($support_ticket_preview)
    ->label());
}