You are here

protected static property ViewsHooksTest::$hooks in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Kernel/ViewsHooksTest.php \Drupal\Tests\views\Kernel\ViewsHooksTest::hooks
  2. 10 core/modules/views/tests/src/Kernel/ViewsHooksTest.php \Drupal\Tests\views\Kernel\ViewsHooksTest::hooks

An array of available views hooks to test.

Type: array

File

core/modules/views/tests/src/Kernel/ViewsHooksTest.php, line 31

Class

ViewsHooksTest
Tests that views hooks are registered when defined in $module.views.inc.

Namespace

Drupal\Tests\views\Kernel

Code

protected static $hooks = [
  'views_data' => 'all',
  'views_data_alter' => 'alter',
  'views_query_substitutions' => 'view',
  'views_form_substitutions' => 'view',
  'views_analyze' => 'view',
  'views_pre_view' => 'view',
  'views_pre_build' => 'view',
  'views_post_build' => 'view',
  'views_pre_execute' => 'view',
  'views_post_execute' => 'view',
  'views_pre_render' => 'view',
  'views_post_render' => 'view',
  'views_query_alter' => 'view',
  'views_invalidate_cache' => 'all',
];