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
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::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::testHookAttribute function core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php Test Hook attribute with named arguments, and class with invoke method.
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::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
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.
HookDiscoveryTest::$moduleHandler property core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php The mocked module handler.
HookDiscoveryTest::hookDiscoveryTest2TestPlugin function core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php
HookDiscoveryTest::hookDiscoveryTestTestPlugin function core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php
HookDiscoveryTest::testGetDefinition function core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php Tests the getDefinition method with some plugins.
HookDiscoveryTest::testGetDefinitions function core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php Tests the getDefinitions() method with some plugins.
HookDiscoveryTest::testGetDefinitionsWithoutPlugins function core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php Tests the getDefinitions() method without any plugins.
HookDiscoveryTest::testGetDefinitionWithUnknownID function core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php Tests the getDefinition method with an unknown plugin ID.
HookHelpSection class core/modules/help/src/Plugin/HelpSection/HookHelpSection.php Provides the module topics list section for the help page.
HookHelpSection.php file core/modules/help/src/Plugin/HelpSection/HookHelpSection.php
HookHelpSection::$moduleHandler property core/modules/help/src/Plugin/HelpSection/HookHelpSection.php The module handler.
HookHelpSection::listTopics function core/modules/help/src/Plugin/HelpSection/HookHelpSection.php Returns a list of topics to show in the help section.
HookHelpSection::__construct function core/modules/help/src/Plugin/HelpSection/HookHelpSection.php Constructs a HookHelpSection object.
HookLoaderTest class core/tests/Drupal/KernelTests/Core/Hook/HookLoaderTest.php Test hook loading.
HookLoaderTest.php file core/tests/Drupal/KernelTests/Core/Hook/HookLoaderTest.php
HookLoaderTest::$modules property core/tests/Drupal/KernelTests/Core/Hook/HookLoaderTest.php Modules to install.
HookLoaderTest::testHookOrder function core/tests/Drupal/KernelTests/Core/Hook/HookLoaderTest.php Test hook implementation order.
HookOrderTest class core/tests/Drupal/KernelTests/Core/Hook/HookOrderTest.php Tests Hook Order.
HookOrderTest.php file core/tests/Drupal/KernelTests/Core/Hook/HookOrderTest.php
HookOrderTest::$modules property core/tests/Drupal/KernelTests/Core/Hook/HookOrderTest.php Modules to install.
HookOrderTest::testBothParametersHookOrder function core/tests/Drupal/KernelTests/Core/Hook/HookOrderTest.php Tests ordering of 'test_both_parameters_hook' with all parameters defined.

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