You are here

SupportTicketRow.php in Support Ticketing System 8

File

modules/support_ticket/src/Plugin/views/row/SupportTicketRow.php
View source
<?php

/**
 * @file
 * Contains \Drupal\support_ticket\Plugin\views\row\SupportTicketRow.
 */
namespace Drupal\support_ticket\Plugin\views\row;

use Drupal\views\Plugin\views\row\EntityRow;

/**
 * Plugin which performs a support_ticket_view on the resulting object.
 *
 * Most of the code on this object is in the theme function.
 *
 * @ingroup views_row_plugins
 *
 * @ViewsRow(
 *   id = "entity:support_ticket",
 * )
 */
class SupportTicketRow extends EntityRow {

  /**
   * {@inheritdoc}
   */
  protected function defineOptions() {
    $options = parent::defineOptions();
    $options['view_mode']['default'] = 'teaser';
    return $options;
  }

}

Classes

Namesort descending Description
SupportTicketRow Plugin which performs a support_ticket_view on the resulting object.