diff --git a/core/modules/views/lib/Drupal/views/Tests/ViewsHooksTest.php b/core/modules/views/lib/Drupal/views/Tests/ViewsHooksTest.php index d2e7e6c..ad98fa6 100644 --- a/core/modules/views/lib/Drupal/views/Tests/ViewsHooksTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/ViewsHooksTest.php @@ -36,7 +36,7 @@ class ViewsHooksTest extends ViewUnitTestBase { 'views_pre_view' => 'view', 'views_pre_build' => 'view', 'views_post_build' => 'view', - 'views_preExecute' => 'view', + 'views_pre_execute' => 'view', 'views_post_execute' => 'view', 'views_pre_render' => 'view', 'views_post_render' => 'view', diff --git a/core/modules/views/lib/Drupal/views/ViewExecutable.php b/core/modules/views/lib/Drupal/views/ViewExecutable.php index 218da52..3daed62 100644 --- a/core/modules/views/lib/Drupal/views/ViewExecutable.php +++ b/core/modules/views/lib/Drupal/views/ViewExecutable.php @@ -1166,7 +1166,7 @@ public function execute($display_id = NULL) { // Let modules modify the view just prior to executing it. $module_handler = \Drupal::moduleHandler(); - $module_handler->invokeAll('views_preExecute', array($this)); + $module_handler->invokeAll('views_pre_execute', array($this)); // Check for already-cached results. if (!empty($this->live_preview)) { diff --git a/core/modules/views/tests/views_test_data/views_test_data.views_execution.inc b/core/modules/views/tests/views_test_data/views_test_data.views_execution.inc index 79d4b53..f37febf 100644 --- a/core/modules/views/tests/views_test_data/views_test_data.views_execution.inc +++ b/core/modules/views/tests/views_test_data/views_test_data.views_execution.inc @@ -92,10 +92,10 @@ function views_test_data_views_pre_view(ViewExecutable $view) { } /** - * Implements hook_views_preExecute(). + * Implements hook_views_pre_execute(). */ -function views_test_data_views_preExecute(ViewExecutable $view) { - state()->set('views_hook_test_views_preExecute', TRUE); +function views_test_data_views_pre_execute(ViewExecutable $view) { + state()->set('views_hook_test_views_pre_execute', TRUE); } /** diff --git a/core/modules/views/views.api.php b/core/modules/views/views.api.php index 254dcf7..2be06b5 100644 --- a/core/modules/views/views.api.php +++ b/core/modules/views/views.api.php @@ -418,7 +418,7 @@ function hook_views_post_build(ViewExecutable &$view) { * * @see \Drupal\views\ViewExecutable */ -function hook_views_preExecute(ViewExecutable &$view) { +function hook_views_pre_execute(ViewExecutable &$view) { // Whenever a view queries more than two tables, show a message that notifies // view administrators that the query might be heavy. // (This action could be performed later in the execution process, but not diff --git a/core/modules/views/views.module b/core/modules/views/views.module index 71cbf0c..cf577bf 100644 --- a/core/modules/views/views.module +++ b/core/modules/views/views.module @@ -766,7 +766,7 @@ function views_hook_info() { 'views_pre_view', 'views_pre_build', 'views_post_build', - 'views_preExecute', + 'views_pre_execute', 'views_post_execute', 'views_pre_render', 'views_post_render',