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. Other projects
Title Object type File name Summary
entity_crud_hook_test_taxonomy_term_presave function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_presave() for taxonomy_term entities.
entity_crud_hook_test_taxonomy_term_update function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_update() for taxonomy_term entities.
entity_crud_hook_test_taxonomy_vocabulary_create function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_create() for taxonomy_vocabulary entities.
entity_crud_hook_test_taxonomy_vocabulary_delete function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_delete() for taxonomy_vocabulary entities.
entity_crud_hook_test_taxonomy_vocabulary_insert function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_insert() for taxonomy_vocabulary entities.
entity_crud_hook_test_taxonomy_vocabulary_load function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_load() for taxonomy_vocabulary entities.
entity_crud_hook_test_taxonomy_vocabulary_predelete function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_predelete() for taxonomy_vocabulary entities.
entity_crud_hook_test_taxonomy_vocabulary_presave function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_presave() for taxonomy_vocabulary entities.
entity_crud_hook_test_taxonomy_vocabulary_update function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_update() for taxonomy_vocabulary entities.
entity_crud_hook_test_user_create function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_create() for user entities.
entity_crud_hook_test_user_delete function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_delete() for user entities.
entity_crud_hook_test_user_insert function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_insert() for user entities.
entity_crud_hook_test_user_load function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_load() for user entities.
entity_crud_hook_test_user_predelete function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_predelete() for user entities.
entity_crud_hook_test_user_presave function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_presave() for user entities.
entity_crud_hook_test_user_update function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_update() for user entities.
EquivalentUpdateTest::testUpdateHooks function core/modules/system/tests/src/Functional/UpdateSystem/EquivalentUpdateTest.php Tests that update hooks are properly run.
FileManagedTestBase::assertFileHookCalled function core/modules/file/tests/src/Functional/FileManagedTestBase.php Assert that a hook_file_* hook was called a certain number of times.
FileManagedTestBase::assertFileHooksCalled function core/modules/file/tests/src/Functional/FileManagedTestBase.php Asserts that the specified file hooks were called only once.
FileManagedUnitTestBase::assertFileHookCalled function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Assert that a hook_file_* hook was called a certain number of times.
FileManagedUnitTestBase::assertFileHooksCalled function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Asserts that the specified file hooks were called only once.
FilterHooksTest class core/modules/filter/tests/src/Functional/FilterHooksTest.php Tests hooks for text formats insert/update/disable.
FilterHooksTest.php file core/modules/filter/tests/src/Functional/FilterHooksTest.php
FilterHooksTest::$defaultTheme property core/modules/filter/tests/src/Functional/FilterHooksTest.php The theme to install as the default for testing.
FilterHooksTest::$modules property core/modules/filter/tests/src/Functional/FilterHooksTest.php Modules to install.
FilterHooksTest::testFilterHooks function core/modules/filter/tests/src/Functional/FilterHooksTest.php Tests hooks on format management.
GenericModuleTestBase::assertHookHelp function core/modules/system/tests/src/Functional/Module/GenericModuleTestBase.php Verifies hook_help() syntax.
HelpEmptyPageTest::testEmptyHookHelp function core/modules/help/tests/src/Kernel/HelpEmptyPageTest.php Ensures that no URL generator is called on a page without hook_help().
Hook.php file core/lib/Drupal/Core/Hook/Attribute/Hook.php
Hook::setMethod function core/lib/Drupal/Core/Hook/Attribute/Hook.php Set the method the hook should apply to.
Hook::__construct function core/lib/Drupal/Core/Hook/Attribute/Hook.php Constructs a Hook attribute object.
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 @coversDefaultClass \Drupal\Core\Plugin\Discovery\HookDiscovery[[api-linebreak]]
@group Plugin
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::setUp 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

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