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. Search main for hook_
  6. Other projects
Title Object type File name Summary
HookCollectorKeyValueWritePass::process function core/lib/Drupal/Core/Hook/HookCollectorKeyValueWritePass.php
HookCollectorPass class core/lib/Drupal/Core/Hook/HookCollectorPass.php Collects and registers hook implementations.
HookCollectorPass.php file core/lib/Drupal/Core/Hook/HookCollectorPass.php
HookCollectorPass::$groupIncludes property core/lib/Drupal/Core/Hook/HookCollectorPass.php Include files, keyed by the $group part of "/$module.$group.inc".
HookCollectorPass::$hookInfo property core/lib/Drupal/Core/Hook/HookCollectorPass.php A list of functions implementing hook_hook_info().
HookCollectorPass::$includes property core/lib/Drupal/Core/Hook/HookCollectorPass.php A map of include files by function name.
HookCollectorPass::$moduleImplementsAlters property core/lib/Drupal/Core/Hook/HookCollectorPass.php A list of functions implementing hook_module_implements_alter().
HookCollectorPass::$oopImplementations property core/lib/Drupal/Core/Hook/HookCollectorPass.php OOP implementation module names keyed by hook name and "$class::$method".
HookCollectorPass::$orderOperations property core/lib/Drupal/Core/Hook/HookCollectorPass.php Order operations grouped by hook name and weight.
HookCollectorPass::$preprocessForSuggestions property core/lib/Drupal/Core/Hook/HookCollectorPass.php Preprocess suggestions discovered in modules.
HookCollectorPass::$proceduralImplementations property core/lib/Drupal/Core/Hook/HookCollectorPass.php Procedural implementation module names by hook name.
HookCollectorPass::$removeHookIdentifiers property core/lib/Drupal/Core/Hook/HookCollectorPass.php Lists of implementation identifiers to remove, keyed by hook name.
HookCollectorPass::addProceduralImplementation function core/lib/Drupal/Core/Hook/HookCollectorPass.php Adds a procedural hook implementation.
HookCollectorPass::applyOrderOperations function core/lib/Drupal/Core/Hook/HookCollectorPass.php Applies order operations to a hook implementation list.
HookCollectorPass::calculateImplementations function core/lib/Drupal/Core/Hook/HookCollectorPass.php Calculates the ordered implementations.
HookCollectorPass::checkForProceduralOnlyHooks function core/lib/Drupal/Core/Hook/HookCollectorPass.php Checks for hooks which can't be supported in classes.
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::hasAnyAttribute function core/lib/Drupal/Core/Hook/HookCollectorPass.php Returns whether the existing attributes match any of the expected ones.
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/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 class core/modules/system/tests/src/Functional/Hook/HookCollectorPassTest.php Tests services in .module files.
HookCollectorPassTest.php file core/modules/system/tests/src/Functional/Hook/HookCollectorPassTest.php
HookCollectorPassTest.php file core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php
HookCollectorPassTest.php file core/tests/Drupal/Tests/Core/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.

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