Search for hook_

  1. Search 7.x for hook_
  2. Search 9.5.x for hook_
  3. Search 8.9.x for hook_
  4. Search 11.x for hook_
  5. Search main for hook_
  6. Other projects
Title Object type File name Summary
InfoHookDecorator::$hook property core/lib/Drupal/Core/Plugin/Discovery/InfoHookDecorator.php The name of the info hook that will be implemented by this discovery instance.
InfoHookDecorator::getDefinitions function core/lib/Drupal/Core/Plugin/Discovery/InfoHookDecorator.php
InfoHookDecorator::__call function core/lib/Drupal/Core/Plugin/Discovery/InfoHookDecorator.php Passes through all unknown calls onto the decorated object.
InfoHookDecorator::__construct function core/lib/Drupal/Core/Plugin/Discovery/InfoHookDecorator.php Constructs an InfoHookDecorator object.
InstallerExistingConfigProfileHookInstall class core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php Verifies that profiles with hook_install() can't be installed from config.
InstallerExistingConfigProfileHookInstall.php file core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php
InstallerExistingConfigProfileHookInstall::$profile property core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php
InstallerExistingConfigProfileHookInstall::getConfigTarball function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php
InstallerExistingConfigProfileHookInstall::setUpRequirementsProblem function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php
InstallerExistingConfigProfileHookInstall::setUpSettings function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php Installer step: Configure settings.
InstallerExistingConfigProfileHookInstall::setUpSite function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php Final installer step: Configure site.
InstallerExistingConfigProfileHookInstall::testConfigSync function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php Confirms the installation has failed and the expected error is displayed.
InstallerExistingConfigProfileHookInstall::visitInstaller function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php
InstallerExistingConfigSyncDirectoryProfileHookInstall class core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php Verifies that profiles with hook_install() can't be installed from config.
InstallerExistingConfigSyncDirectoryProfileHookInstall.php file core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php
InstallerExistingConfigSyncDirectoryProfileHookInstall::$defaultTheme property core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php
InstallerExistingConfigSyncDirectoryProfileHookInstall::$existingSyncDirectory property core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php
InstallerExistingConfigSyncDirectoryProfileHookInstall::$profile property core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php
InstallerExistingConfigSyncDirectoryProfileHookInstall::getConfigTarball function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php
InstallerExistingConfigSyncDirectoryProfileHookInstall::setUpProfile function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php Installer step: Select installation profile.
InstallerExistingConfigSyncDirectoryProfileHookInstall::setUpRequirementsProblem function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php Installer step: Requirements problem.
InstallerExistingConfigSyncDirectoryProfileHookInstall::setUpSettings function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php Installer step: Configure settings.
InstallerExistingConfigSyncDirectoryProfileHookInstall::setUpSite function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php Final installer step: Configure site.
InstallerExistingConfigSyncDirectoryProfileHookInstall::testConfigSync function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php Tests installing from config is not available due to hook_INSTALL().
InstallerExistingConfigSyncDirectoryProfileHookInstall::visitInstaller function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php
InstallerProfileRequirementsTest::testHookRequirementsFailure function core/tests/Drupal/FunctionalTests/Installer/InstallerProfileRequirementsTest.php Assert that the profile failed hook_requirements().
InvalidUpdateHookTest class core/modules/system/tests/src/Functional/UpdateSystem/InvalidUpdateHookTest.php Tests that hook_update_8000() is disallowed.
InvalidUpdateHookTest.php file core/modules/system/tests/src/Functional/UpdateSystem/InvalidUpdateHookTest.php
InvalidUpdateHookTest::$defaultTheme property core/modules/system/tests/src/Functional/UpdateSystem/InvalidUpdateHookTest.php
InvalidUpdateHookTest::$modules property core/modules/system/tests/src/Functional/UpdateSystem/InvalidUpdateHookTest.php
InvalidUpdateHookTest::$updateUrl property core/modules/system/tests/src/Functional/UpdateSystem/InvalidUpdateHookTest.php URL for the upgrade script.
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
LanguageEntityFieldAccessHookTest::$modules property core/modules/language/tests/src/Functional/LanguageEntityFieldAccessHookTest.php
LanguageEntityFieldAccessHookTest::testHookEntityFieldAccess function core/modules/language/tests/src/Functional/LanguageEntityFieldAccessHookTest.php Tests compatibility with hook_entity_field_access().
LegacyHook.php file core/lib/Drupal/Core/Hook/Attribute/LegacyHook.php
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.
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 Tests 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
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

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