function FilterExceptionTest::query

Same name in other branches
  1. 9 core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/FilterExceptionTest.php \Drupal\views_test_data\Plugin\views\filter\FilterExceptionTest::query()
  2. 8.9.x core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/FilterExceptionTest.php \Drupal\views_test_data\Plugin\views\filter\FilterExceptionTest::query()
  3. 11.x core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/FilterExceptionTest.php \Drupal\views_test_data\Plugin\views\filter\FilterExceptionTest::query()

Overrides FilterPluginBase::query

File

core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/FilterExceptionTest.php, line 17

Class

FilterExceptionTest
Breaks the query with adding an invalid where expression.

Namespace

Drupal\views_test_data\Plugin\views\filter

Code

public function query() {
    $this->query
        ->addWhereExpression(NULL, "syntax error");
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.