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 10.3.x for hook_
  5. Other projects
Title Object type File name Summary
HookCollectorPass::collectAllHookImplementations function core/lib/Drupal/Core/Hook/HookCollectorPass.php Collects all hook implementations.
HookCollectorPass::collectIncludesPerHook function core/lib/Drupal/Core/Hook/HookCollectorPass.php Collects include files by hook name.
HookCollectorPass::collectModuleHookImplementations function core/lib/Drupal/Core/Hook/HookCollectorPass.php Collects procedural and Attribute hook implementations.
HookCollectorPass::filterIterator function core/lib/Drupal/Core/Hook/HookCollectorPass.php Filter iterator callback. Allows include files and .php files in src/Hook.
HookCollectorPass::getAttributeInstances function core/lib/Drupal/Core/Hook/HookCollectorPass.php Get attribute instances from class and method reflections.
HookCollectorPass::getFilteredImplementations function core/lib/Drupal/Core/Hook/HookCollectorPass.php Gets implementation lists with removals already applied.
HookCollectorPass::getModuleListPattern function core/lib/Drupal/Core/Hook/HookCollectorPass.php Get a pattern used to match hooks for the given module list.
HookCollectorPass::getOrderOperations function core/lib/Drupal/Core/Hook/HookCollectorPass.php Gets order operations by hook.
HookCollectorPass::loadAllIncludes function core/lib/Drupal/Core/Hook/HookCollectorPass.php This method is only to be used by ModuleHandler.
HookCollectorPass::process function core/lib/Drupal/Core/Hook/HookCollectorPass.php
HookCollectorPass::registerHookServices function core/lib/Drupal/Core/Hook/HookCollectorPass.php Registers the hook implementation services.
HookCollectorPass::writeToContainer function core/lib/Drupal/Core/Hook/HookCollectorPass.php Writes collected definitions to the container builder.
HookCollectorPass::__construct function core/lib/Drupal/Core/Hook/HookCollectorPass.php Constructor.
HookCollectorPassTest class core/modules/system/tests/src/Functional/Hook/HookCollectorPassTest.php Tests services in .module files.
HookCollectorPassTest class core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php Tests Drupal\Core\Hook\HookCollectorPass.
HookCollectorPassTest class core/tests/Drupal/Tests/Core/Hook/HookCollectorPassTest.php Tests Drupal\Core\Hook\HookCollectorPass.
HookCollectorPassTest.php file core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php
HookCollectorPassTest.php file core/tests/Drupal/Tests/Core/Hook/HookCollectorPassTest.php
HookCollectorPassTest.php file core/modules/system/tests/src/Functional/Hook/HookCollectorPassTest.php
HookCollectorPassTest::$defaultTheme property core/modules/system/tests/src/Functional/Hook/HookCollectorPassTest.php The theme to install as the default for testing.
HookCollectorPassTest::$modules property core/modules/system/tests/src/Functional/Hook/HookCollectorPassTest.php Modules to install.
HookCollectorPassTest::assertRegisteredHooks function core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php Asserts that given hook implementations are registered in the container.
HookCollectorPassTest::setUpFilesystem function core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php VFS does not and can not support symlinks.
HookCollectorPassTest::testCollectAllHookImplementations function core/tests/Drupal/Tests/Core/Hook/HookCollectorPassTest.php Tests collect all hook implementations.
HookCollectorPassTest::testContainerOutsideFunction function core/modules/system/tests/src/Functional/Hook/HookCollectorPassTest.php Tests installing a module with a Drupal container call outside functions.
HookCollectorPassTest::testGroupIncludes function core/tests/Drupal/Tests/Core/Hook/HookCollectorPassTest.php Tests group includes.
HookCollectorPassTest::testHookAfter function core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php Tests hook ordering with attributes.
HookCollectorPassTest::testHookAfterClassMethod function core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php Tests hook ordering with attributes.
HookCollectorPassTest::testHookBefore function core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php Tests hook ordering with attributes.
HookCollectorPassTest::testHookFirst function core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php Tests hook ordering with attributes.
HookCollectorPassTest::testHookIgnoreNonOop function core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php Tests that legacy install/update hooks are ignored.
HookCollectorPassTest::testHookLast function core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php Tests hook ordering with attributes.
HookCollectorPassTest::testHookOrderExtraTypes function core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php Tests hook ordering with attributes.
HookCollectorPassTest::testHookOverride function core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php Tests hook override.
HookCollectorPassTest::testHookRemove function core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php Tests hook remove.
HookCollectorPassTest::testHooksImplementedOnBehalfFileCache function core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php Test hooks implemented on behalf of an uninstalled module.
HookCollectorPassTest::testLegacyModuleImplementsAlter function core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php Test LegacyModuleImplementsAlter.
HookCollectorPassTest::testOrdering function core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php Test that ordering works.
HookCollectorPassTest::testPrefixOwnership function core/tests/Drupal/Tests/Core/Hook/HookCollectorPassTest.php Tests prefix ownership of procedural hooks.
HookCollectorPassTest::testProceduralHooksSkippedWhenConfigured function core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php Test procedural hooks for a module are skipped when skip is set.
HookCollectorPassTest::testSymlink function core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php Test that symlinks are properly followed.
HookDiscovery class core/lib/Drupal/Core/Plugin/Discovery/HookDiscovery.php Provides a hook-based plugin discovery class.
HookDiscovery.php file core/lib/Drupal/Core/Plugin/Discovery/HookDiscovery.php
HookDiscovery::$hook property core/lib/Drupal/Core/Plugin/Discovery/HookDiscovery.php The name of the hook that will be implemented by this discovery instance.
HookDiscovery::$moduleHandler property core/lib/Drupal/Core/Plugin/Discovery/HookDiscovery.php The module handler used to find and execute the plugin hook.
HookDiscovery::getDefinitions function core/lib/Drupal/Core/Plugin/Discovery/HookDiscovery.php Gets the definition of all plugins for this type.
HookDiscovery::__construct function core/lib/Drupal/Core/Plugin/Discovery/HookDiscovery.php Constructs a Drupal\Core\Plugin\Discovery\HookDiscovery object.
HookDiscoveryTest class core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php Tests Drupal\Core\Plugin\Discovery\HookDiscovery.
HookDiscoveryTest.php file core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php
HookDiscoveryTest::$hookDiscovery property core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php The tested hook discovery.

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