You are here

public function Xml::addFilter in Views XML Backend 8

Adds a filter.

Parameters

\Drupal\views_xml_backend\Plugin\views\filter\XmlFilterInterface $filter: The filter to add.

File

src/Plugin/views/query/Xml.php, line 259
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 addFilter(XmlFilterInterface $filter) {
  $this->filters[] = $filter;
}