function ViewsTestDataViewsExecutionHooks::viewsPreExecute
Same name and namespace in other branches
- 11.x core/modules/views/tests/modules/views_test_data/src/Hook/ViewsTestDataViewsExecutionHooks.php \Drupal\views_test_data\Hook\ViewsTestDataViewsExecutionHooks::viewsPreExecute()
Implements hook_views_pre_execute().
Attributes
#[Hook('views_pre_execute')]
File
-
core/
modules/ views/ tests/ modules/ views_test_data/ src/ Hook/ ViewsTestDataViewsExecutionHooks.php, line 127
Class
- ViewsTestDataViewsExecutionHooks
- Hook implementations for views_test_data.
Namespace
Drupal\views_test_data\HookCode
public function viewsPreExecute(ViewExecutable $view) : void {
\Drupal::state()->set('views_hook_test_views_pre_execute', TRUE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.