Search for hook_

  1. Search 7.x for hook_
  2. Search 8.9.x for hook_
  3. Search 10.3.x for hook_
  4. Search 11.x for hook_
  5. Other projects
Title Object type File name Summary
UpdateHookRegistryFactory::create function core/lib/Drupal/Core/Update/UpdateHookRegistryFactory.php Creates a new UpdateHookRegistry instance.
UpdateHookRegistryTest class core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php @coversDefaultClass \Drupal\Core\Update\UpdateHookRegistry[[api-linebreak]]
@group Update
UpdateHookRegistryTest.php file core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php
UpdateHookRegistryTest::$keyValueFactory property core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php
UpdateHookRegistryTest::$keyValueStore property core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php
UpdateHookRegistryTest::setUp function core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php
UpdateHookRegistryTest::testGetInstalledVersion function core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php @covers ::getInstalledVersion[[api-linebreak]]
@covers ::getAllInstalledVersions[[api-linebreak]]
@covers ::setInstalledVersion[[api-linebreak]]
@covers ::deleteInstalledVersion[[api-linebreak]]
UpdateHookRegistryTest::testGetVersions function core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php @covers ::getAvailableUpdates[[api-linebreak]]
UpdatePathTestBaseTest::testUpdateHookN function core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php Tests that updates are properly run.
UpdateSchemaTest::testUpdateHooks function core/modules/system/tests/src/Functional/UpdateSystem/UpdateSchemaTest.php Tests that update hooks are properly run.
update_test_invalid_hook.info.yml file core/modules/system/tests/modules/update_test_invalid_hook/update_test_invalid_hook.info.yml core/modules/system/tests/modules/update_test_invalid_hook/update_test_invalid_hook.info.yml
update_test_invalid_hook.install file core/modules/system/tests/modules/update_test_invalid_hook/update_test_invalid_hook.install Install, update and uninstall functions for the update_test_invalid_hook module.
update_test_invalid_hook_update_8000 function core/modules/system/tests/modules/update_test_invalid_hook/update_test_invalid_hook.install Hook implementation using the reserved schema version 8000.
user_hooks_test.info.yml file core/modules/user/tests/modules/user_hooks_test/user_hooks_test.info.yml core/modules/user/tests/modules/user_hooks_test/user_hooks_test.info.yml
user_hooks_test.module file core/modules/user/tests/modules/user_hooks_test/user_hooks_test.module Support module for user hooks testing.
user_hooks_test_user_format_name_alter function core/modules/user/tests/modules/user_hooks_test/user_hooks_test.module Implements hook_user_format_name_alter().
ViewsDisplay::$uses_hook_block property core/modules/views/src/Annotation/ViewsDisplay.php Does the display plugin provide blocks.
ViewsHandlerManagerTest::testAlterHookInvocation function core/modules/views/tests/src/Unit/ViewsHandlerManagerTest.php Tests that hook_views_plugins_TYPE_alter() is invoked for a handler type.
ViewsHooksTest class core/modules/views/tests/src/Kernel/ViewsHooksTest.php Tests that views hooks are registered when defined in $module.views.inc.
ViewsHooksTest.php file core/modules/views/tests/src/Kernel/ViewsHooksTest.php
ViewsHooksTest::$hooks property core/modules/views/tests/src/Kernel/ViewsHooksTest.php An array of available views hooks to test.
ViewsHooksTest::$moduleHandler property core/modules/views/tests/src/Kernel/ViewsHooksTest.php The module handler to use for invoking hooks.
ViewsHooksTest::$testViews property core/modules/views/tests/src/Kernel/ViewsHooksTest.php Views used by this test.
ViewsHooksTest::setUp function core/modules/views/tests/src/Kernel/ViewsHooksTest.php
ViewsHooksTest::testHooks function core/modules/views/tests/src/Kernel/ViewsHooksTest.php Tests the hooks.
ViewsHooksTest::testViewsFormMainFormPreRender function core/modules/views/tests/src/Kernel/ViewsHooksTest.php Tests how hook_views_form_substitutions() makes substitutions.
ViewsLocalTaskTest::testGetDerivativeDefinitionsWithoutHookMenuViews function core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php Tests fetching the derivatives on no view with hook menu.
views_hook_info function core/modules/views/views.module Implements hook_hook_info().
_entity_test_record_hooks function core/modules/system/tests/modules/entity_test/entity_test.module Helper function to be used to record hook invocations.

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