function ViewsTestCacheContextFilter::query

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

Overrides FilterPluginBase::query

File

core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/ViewsTestCacheContextFilter.php, line 14

Class

ViewsTestCacheContextFilter

Namespace

Drupal\views_test_data\Plugin\views\filter

Code

public function query() {
    $this->value = \Drupal::state()->get('views_test_cache_context', 'George');
    parent::query();
}

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