FilterExceptionTest.php
Same filename in other branches
Namespace
Drupal\views_test_data\Plugin\views\filterFile
-
core/
modules/ views/ tests/ modules/ views_test_data/ src/ Plugin/ views/ filter/ FilterExceptionTest.php
View source
<?php
namespace Drupal\views_test_data\Plugin\views\filter;
use Drupal\views\Plugin\views\filter\FilterPluginBase;
/**
* Breaks the query with adding an invalid where expression.
*
* @ViewsFilter("test_exception_filter")
*/
class FilterExceptionTest extends FilterPluginBase {
/**
* {@inheritdoc}
*/
public function query() {
$this->query
->addWhereExpression(NULL, "syntax error");
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
FilterExceptionTest | Breaks the query with adding an invalid where expression. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.