public function SupportTicket::getArgument in Support Ticketing System 8
Return the default argument.
This needs to be overridden by every default argument handler to properly do what is needed.
Overrides ArgumentDefaultPluginBase::getArgument
File
- modules/
support_ticket/ src/ Plugin/ views/ argument_default/ SupportTicket.php, line 69 - Contains \Drupal\support_ticket\Plugin\views\argument_default\SupportTicket.
Class
- SupportTicket
- Default argument plugin to extract a support ticket.
Namespace
Drupal\support_ticket\Plugin\views\argument_defaultCode
public function getArgument() {
if (($support_ticket = $this->routeMatch
->getParameter('support_ticket')) && $support_ticket instanceof SupportTicketInterface) {
return $support_ticket
->id();
}
}