Search for hook

  1. Search 7.x for hook
  2. Search 9.5.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
InvalidUpdateHookTest::$updateUser property core/modules/system/tests/src/Functional/UpdateSystem/InvalidUpdateHookTest.php A user account with upgrade permission.
InvalidUpdateHookTest::setUp function core/modules/system/tests/src/Functional/UpdateSystem/InvalidUpdateHookTest.php
InvalidUpdateHookTest::testInvalidUpdateHook function core/modules/system/tests/src/Functional/UpdateSystem/InvalidUpdateHookTest.php
JsonApiRegressionTest::testGetNodeCollectionWithHookNodeGrantsImplementationsFromIssue2984964 function core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php Ensures GETting node collection + hook_node_grants() implementations works.
LanguageEntityFieldAccessHookTest class core/modules/language/tests/src/Functional/LanguageEntityFieldAccessHookTest.php Tests language picker compatibility with hook_entity_field_access.
LanguageEntityFieldAccessHookTest.php file core/modules/language/tests/src/Functional/LanguageEntityFieldAccessHookTest.php
LanguageEntityFieldAccessHookTest::$defaultTheme property core/modules/language/tests/src/Functional/LanguageEntityFieldAccessHookTest.php The theme to install as the default for testing.
LanguageEntityFieldAccessHookTest::$modules property core/modules/language/tests/src/Functional/LanguageEntityFieldAccessHookTest.php Modules to enable.
LanguageEntityFieldAccessHookTest::testHookEntityFieldAccess function core/modules/language/tests/src/Functional/LanguageEntityFieldAccessHookTest.php Tests compatibility with hook_entity_field_access().
Layout::$theme_hook property core/lib/Drupal/Core/Layout/Annotation/Layout.php The theme hook used to render this layout.
LayoutDefinition::$theme_hook property core/lib/Drupal/Core/Layout/LayoutDefinition.php The theme hook used to render this layout.
LayoutDefinition::getThemeHook function core/lib/Drupal/Core/Layout/LayoutDefinition.php Gets the theme hook.
LayoutDefinition::setThemeHook function core/lib/Drupal/Core/Layout/LayoutDefinition.php Sets the theme hook.
LibraryDiscoveryIntegrationTest::testHookLibraryInfoByTheme function core/tests/Drupal/KernelTests/Core/Asset/LibraryDiscoveryIntegrationTest.php Tests that hook_library_info is invoked and the cache is cleared.
LinkGenerationTest::testHookLinkAlter function core/tests/Drupal/KernelTests/Core/Url/LinkGenerationTest.php Tests how hook_link_alter() can affect escaping of the link text.
LinkGeneratorTest::testGenerateWithAlterHook function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests altering the URL object using hook_link_alter().
LocalActionsAndTasksConvertedIntoBlocksUpdateTest::testUpdateHookN function core/modules/system/tests/src/Functional/Update/LocalActionsAndTasksConvertedIntoBlocksUpdateTest.php Tests that local actions/tasks are being converted into blocks.
MediaTemplateSuggestionsTest::testMediaThemeHookSuggestions function core/modules/media/tests/src/Functional/MediaTemplateSuggestionsTest.php Tests template suggestions from media_theme_suggestions_media().
MenuRouterTest::doTestHookMenuIntegration function core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php Test local tasks with route placeholders.
ModuleHandler::$hookInfo property core/lib/Drupal/Core/Extension/ModuleHandler.php Information returned by hook_hook_info() implementations.
ModuleHandler::buildHookInfo function core/lib/Drupal/Core/Extension/ModuleHandler.php Builds hook_hook_info() information.
ModuleHandler::getHookInfo function core/lib/Drupal/Core/Extension/ModuleHandler.php Retrieves a list of hooks that are declared through hook_hook_info().
ModuleHandler::implementsHook function core/lib/Drupal/Core/Extension/ModuleHandler.php Returns whether a given module implements a given hook.
ModuleHandlerDeprecatedHookTest class core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php Test whether deprecated hook invocations trigger errors.
ModuleHandlerDeprecatedHookTest.php file core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php
ModuleHandlerDeprecatedHookTest::$modules property core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php Modules to enable.
ModuleHandlerDeprecatedHookTest::testAlterDeprecated function core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php @covers ::alterDeprecated[[api-linebreak]]
@expectedDeprecation The deprecated alter hook hook_deprecated_alter_alter() is implemented in these functions: deprecation_test_deprecated_alter_alter. Alter something else.
ModuleHandlerDeprecatedHookTest::testInvokeAllDeprecated function core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php @covers ::invokeAllDeprecated[[api-linebreak]]
@expectedDeprecation The deprecated hook hook_deprecated_hook() is implemented in these functions: deprecation_test_deprecated_hook(). Use something else.
ModuleHandlerDeprecatedHookTest::testInvokeDeprecated function core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php @covers ::invokeDeprecated[[api-linebreak]]
@expectedDeprecation The deprecated hook hook_deprecated_hook() is implemented in these functions: deprecation_test_deprecated_hook(). Use something else.
ModuleHandlerDeprecatedHookUnimplementedTest class core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookUnimplementedTest.php Test whether unimplemented deprecated hook invocations trigger errors.
ModuleHandlerDeprecatedHookUnimplementedTest.php file core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookUnimplementedTest.php
ModuleHandlerDeprecatedHookUnimplementedTest::testUnimplementedHooks function core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookUnimplementedTest.php @covers ::alterDeprecated[[api-linebreak]]
@covers ::invokeAllDeprecated[[api-linebreak]]
@covers ::invokeDeprecated[[api-linebreak]]
@doesNotPerformAssertions
ModuleHandlerInterface::getHookInfo function core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php Retrieves a list of hooks that are declared through hook_hook_info().
ModuleHandlerInterface::implementsHook function core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php Returns whether a given module implements a given hook.
ModuleHandlerTest::testGetHookInfo function core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php Test hook_hook_info() fetching through getHookInfo().
ModuleHandlerTest::testImplementsHookModuleEnabled function core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php Test implementations methods when module is enabled.
ModuleInstallerTest::testKernelRebuildDuringHookInstall function core/tests/Drupal/KernelTests/Core/Extension/ModuleInstallerTest.php Ensure that rebuilding the container in hook_install() works.
ModuleTestController::hookDynamicLoadingInvoke function core/modules/system/tests/modules/module_test/src/Controller/ModuleTestController.php Returns dynamically invoked hook results for the 'module_test' module
ModuleTestController::hookDynamicLoadingInvokeAll function core/modules/system/tests/modules/module_test/src/Controller/ModuleTestController.php Returns dynamically invoked hook results for all modules.
module_handler_test_added.hook.inc file core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_added/module_handler_test_added.hook.inc Include file for test module.
module_handler_test_added_hook function core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_added/module_handler_test_added.hook.inc Test function.
module_handler_test_all1_hook function core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_all1/module_handler_test_all1.module Returns an array to test nested merge in invoke all.
module_handler_test_all2_hook function core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_all2/module_handler_test_all2.module Test function.
module_handler_test_hook function core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/module_handler_test.module
module_handler_test_hook_include function core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/hook_include.inc Test hook.
module_handler_test_hook_info function core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/module_handler_test.module Implements hook_hook_info().
module_handler_test_no_hook.info.yml file core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_no_hook/module_handler_test_no_hook.info.yml core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_no_hook/module_handler_test_no_hook.info.yml
module_test_altered_test_hook function core/modules/system/tests/modules/module_test/module_test.implementations.inc Implements hook_altered_test_hook().
module_test_hook_info function core/modules/system/tests/modules/module_test/module_test.module Implements hook_hook_info().
module_test_test_hook function core/modules/system/tests/modules/module_test/module_test.file.inc Implements hook_test_hook().

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