You are here

function support_ticket_view in Support Ticketing System 8

Generates an array for rendering the given support ticket.

Parameters

\Drupal\support_ticket\SupportTicketInterface $support_ticket: A support ticket entity.

$view_mode: (optional) View mode, e.g., 'full', 'teaser', etc. Defaults to 'full.'

$langcode: (optional) A language code to use for rendering. Defaults to NULL which is the global content language of the current request.

Return value

An array as expected by drupal_render().

2 calls to support_ticket_view()
Rss::render in modules/support_ticket/src/Plugin/views/row/Rss.php
Render a row object. This usually passes through to a theme template of some form, but not always.
UnpublishByKeywordSupportTicket::execute in modules/support_ticket/src/Plugin/Action/UnpublishByKeywordSupportTicket.php
Executes the plugin.

File

modules/support_ticket/support_ticket.module, line 589
Enables use of support tickets with optional time tracking.

Code

function support_ticket_view(SupportTicketInterface $support_ticket, $view_mode = 'full', $langcode = NULL) {
  return entity_view($support_ticket, $view_mode, $langcode);
}