You are here

function Type::support_ticket_type in Support Ticketing System 8

2 calls to Type::support_ticket_type()
Type::summaryName in modules/support_ticket/src/Plugin/views/argument/Type.php
Override the behavior of summaryName(). Get the user friendly version of the support ticket type.
Type::title in modules/support_ticket/src/Plugin/views/argument/Type.php
Override the behavior of title(). Get the user friendly version of the support ticket type.

File

modules/support_ticket/src/Plugin/views/argument/Type.php, line 76
Contains \Drupal\support_ticket\Plugin\views\argument\Type.

Class

Type
Argument handler to accept a support ticket type.

Namespace

Drupal\support_ticket\Plugin\views\argument

Code

function support_ticket_type($type_name) {
  $type = $this->supportTicketTypeStorage
    ->load($type_name);
  $output = $type ? $type
    ->label() : $this
    ->t('Unknown support ticket type');
  return SafeMarkup::checkPlain($output);
}