You are here

public function Rss::__construct in Support Ticketing System 8

Constructs the Rss object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

Overrides RssPluginBase::__construct

File

modules/support_ticket/src/Plugin/views/row/Rss.php, line 64
Contains \Drupal\support_ticket\Plugin\views\row\Rss.

Class

Rss
Plugin which performs a support_ticket_view on the resulting object and formats it as an RSS item.

Namespace

Drupal\support_ticket\Plugin\views\row

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityManagerInterface $entity_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_manager);
  $this->supportTicketStorage = $entity_manager
    ->getStorage('support_ticket');
}