You are here

public function Xml::__construct in Views XML Backend 8

Constructs an Xml 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.

\GuzzleHttp\ClientInterface $http_client: The HTTP client.

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend.

\Psr\Log\LoggerInterface $logger: The logger.

\Drupal\views_xml_backend\MessengerInterface $messenger: The messenger used to display messages to the user.

Overrides PluginBase::__construct

File

src/Plugin/views/query/Xml.php, line 129
Contains \Drupal\views_xml_backend\Plugin\views\query\Xml.

Class

Xml
Views query plugin for an XML query.

Namespace

Drupal\views_xml_backend\Plugin\views\query

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ClientInterface $http_client, CacheBackendInterface $cache_backend, LoggerInterface $logger, MessengerInterface $messenger) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->httpClient = $http_client;
  $this->cacheBackend = $cache_backend;
  $this->logger = $logger;
  $this->messenger = $messenger;
}