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 11.x for hook_
  6. Other projects
Title Object type File name Summary
Hook.php file core/lib/Drupal/Core/Hook/Attribute/Hook.php
Hook::__construct function core/lib/Drupal/Core/Hook/Attribute/Hook.php Constructs a Hook attribute object.
HookAlterOrderTest class core/tests/Drupal/KernelTests/Core/Hook/HookAlterOrderTest.php Tests Hook Alter Order.
HookAlterOrderTest.php file core/tests/Drupal/KernelTests/Core/Hook/HookAlterOrderTest.php
HookAlterOrderTest::$modules property core/tests/Drupal/KernelTests/Core/Hook/HookAlterOrderTest.php Modules to install.
HookAlterOrderTest::alter function core/tests/Drupal/KernelTests/Core/Hook/HookAlterOrderTest.php Invokes ModuleHandler->alter() and returns the altered array.
HookAlterOrderTest::assertAlterCallOrder function core/tests/Drupal/KernelTests/Core/Hook/HookAlterOrderTest.php Asserts the call order from an alter call.
HookAlterOrderTest::testAlterOrder function core/tests/Drupal/KernelTests/Core/Hook/HookAlterOrderTest.php Test ordering alter calls.
HookAlterOrderTest::testReorderAlterMissingTarget function core/tests/Drupal/KernelTests/Core/Hook/HookAlterOrderTest.php Tests #[ReorderHook] attributes with missing target.
HookAlterOrderTest::testReorderCrossHookAlter function core/tests/Drupal/KernelTests/Core/Hook/HookAlterOrderTest.php Tests #[ReorderHook] targeting other hooks.
HookAttributeInterface interface core/lib/Drupal/Core/Hook/Attribute/HookAttributeInterface.php Common interface for attributes used for hook discovery.
HookAttributeInterface.php file core/lib/Drupal/Core/Hook/Attribute/HookAttributeInterface.php
HookAttributeInvokeHook class core/modules/system/tests/modules/hook_collector_hook_attribute/src/Hook/HookAttributeInvokeHook.php Test Hook attribute named arguments.
HookAttributeInvokeHook.php file core/modules/system/tests/modules/hook_collector_hook_attribute/src/Hook/HookAttributeInvokeHook.php
HookAttributeInvokeHook::__invoke function core/modules/system/tests/modules/hook_collector_hook_attribute/src/Hook/HookAttributeInvokeHook.php Implements hook_cache_flush().
HookAttributeNamedArgumentsHook class core/modules/system/tests/modules/hook_collector_hook_attribute/src/Hook/HookAttributeNamedArgumentsHook.php Test Hook attribute named arguments.
HookAttributeNamedArgumentsHook.php file core/modules/system/tests/modules/hook_collector_hook_attribute/src/Hook/HookAttributeNamedArgumentsHook.php
HookAttributeNamedArgumentsHook::flush function core/modules/system/tests/modules/hook_collector_hook_attribute/src/Hook/HookAttributeNamedArgumentsHook.php Implements hook_cache_flush().
HookCollectorKeyValueWritePass class core/lib/Drupal/Core/Hook/HookCollectorKeyValueWritePass.php Stores hook implementations in keyvalue and clears cache.
HookCollectorKeyValueWritePass.php file core/lib/Drupal/Core/Hook/HookCollectorKeyValueWritePass.php
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::$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::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::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/Tests/Core/Hook/HookCollectorPassTest.php Tests Drupal\Core\Hook\HookCollectorPass.
HookCollectorPassTest class core/tests/Drupal/KernelTests/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/Tests/Core/Hook/HookCollectorPassTest.php
HookCollectorPassTest.php file core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php

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