function ViewsTestDataViewsHooks::viewsInvalidateCache

Same name and namespace in other branches
  1. 11.x core/modules/views/tests/modules/views_test_data/src/Hook/ViewsTestDataViewsHooks.php \Drupal\views_test_data\Hook\ViewsTestDataViewsHooks::viewsInvalidateCache()

Implements hook_views_invalidate_cache().

Attributes

File

core/modules/views/tests/modules/views_test_data/src/Hook/ViewsTestDataViewsHooks.php, line 59

Class

ViewsTestDataViewsHooks
Hook implementations for views_test_data.

Namespace

Drupal\views_test_data\Hook

Code

public function viewsInvalidateCache() : void {
  \Drupal::state()->set('views_hook_test_views_invalidate_cache', TRUE);
}

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