public function SupportTicket::init in Support Ticketing System 8
Initialize the plugin.
Parameters
\Drupal\views\ViewExecutable $view: The view object.
\Drupal\views\Plugin\views\display\DisplayPluginBase $display: The display handler.
array $options: The options configured for this plugin.
Overrides FieldPluginBase::init
File
- modules/
support_ticket/ src/ Plugin/ views/ field/ SupportTicket.php, line 31 - Contains \Drupal\support_ticket\Plugin\views\field\SupportTicket.
Class
- SupportTicket
- Field handler to provide simple renderer that allows linking to a support ticket. Definition terms:
Namespace
Drupal\support_ticket\Plugin\views\fieldCode
public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
parent::init($view, $display, $options);
// Don't add the additional fields to groupby
if (!empty($this->options['link_to_support_ticket'])) {
$this->additional_fields['stid'] = array(
'table' => 'support_ticket_field_data',
'field' => 'stid',
);
}
}