protected function SupportTicket::display_options_row in Support Ticketing System 8
Set the row style and row style plugins to the display_options.
2 calls to SupportTicket::display_options_row()
- SupportTicket::blockDisplayOptions in modules/
support_ticket/ src/ Plugin/ views/ wizard/ SupportTicket.php - Retrieves the block display options.
- SupportTicket::pageDisplayOptions in modules/
support_ticket/ src/ Plugin/ views/ wizard/ SupportTicket.php - Retrieves the page display options.
File
- modules/
support_ticket/ src/ Plugin/ views/ wizard/ SupportTicket.php, line 172 - Contains \Drupal\support_ticket\Plugin\views\wizard\SupportTicket.
Class
- SupportTicket
- Tests creating support ticket views with the wizard.
Namespace
Drupal\support_ticket\Plugin\views\wizardCode
protected function display_options_row(&$display_options, $row_plugin, $row_options) {
switch ($row_plugin) {
case 'full_posts':
$display_options['row']['type'] = 'entity:support_ticket';
$display_options['row']['options']['view_mode'] = 'full';
break;
case 'teasers':
$display_options['row']['type'] = 'entity:support_ticket';
$display_options['row']['options']['view_mode'] = 'teaser';
break;
case 'titles_linked':
case 'titles':
$display_options['row']['type'] = 'fields';
$display_options['fields']['title']['id'] = 'title';
$display_options['fields']['title']['table'] = 'support_ticket_field_data';
$display_options['fields']['title']['field'] = 'title';
$display_options['fields']['title']['settings']['link_to_entity'] = $row_plugin === 'titles_linked';
$display_options['fields']['title']['plugin_id'] = 'field';
break;
}
}