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
UpdateHookRegistry::$keyValue property core/lib/Drupal/Core/Update/UpdateHookRegistry.php The system.schema key value storage.
UpdateHookRegistry::deleteEquivalentUpdate function core/lib/Drupal/Core/Update/UpdateHookRegistry.php Removes an equivalent update.
UpdateHookRegistry::deleteInstalledVersion function core/lib/Drupal/Core/Update/UpdateHookRegistry.php Deletes the installed version information for the module.
UpdateHookRegistry::determineModuleAndVersion function core/lib/Drupal/Core/Update/UpdateHookRegistry.php Determines the module and update number from the stack trace.
UpdateHookRegistry::FUNC_NAME_REGEXP constant core/lib/Drupal/Core/Update/UpdateHookRegistry.php Regular expression to match all possible defined hook_update_N().
UpdateHookRegistry::getAllEquivalentUpdates function core/lib/Drupal/Core/Update/UpdateHookRegistry.php Returns the equivalent update information for all modules.
UpdateHookRegistry::getAllInstalledVersions function core/lib/Drupal/Core/Update/UpdateHookRegistry.php Returns the currently installed schema version for all modules.
UpdateHookRegistry::getAvailableUpdates function core/lib/Drupal/Core/Update/UpdateHookRegistry.php Returns an array of available schema versions for a module.
UpdateHookRegistry::getEquivalentUpdate function core/lib/Drupal/Core/Update/UpdateHookRegistry.php Gets the EquivalentUpdate object for an update.
UpdateHookRegistry::getInstalledVersion function core/lib/Drupal/Core/Update/UpdateHookRegistry.php Returns the currently installed schema version for a module.
UpdateHookRegistry::markFutureUpdateEquivalent function core/lib/Drupal/Core/Update/UpdateHookRegistry.php Marks a future update as equivalent to the current update running.
UpdateHookRegistry::SCHEMA_UNINSTALLED constant core/lib/Drupal/Core/Update/UpdateHookRegistry.php Indicates that a module has not been installed yet.
UpdateHookRegistry::setInstalledVersion function core/lib/Drupal/Core/Update/UpdateHookRegistry.php Updates the installed version information for a module.
UpdateHookRegistry::__construct function core/lib/Drupal/Core/Update/UpdateHookRegistry.php Constructs a new UpdateHookRegistry.
UpdateHookRegistryFactory class core/lib/Drupal/Core/Update/UpdateHookRegistryFactory.php Service factory for the versioning update registry.
UpdateHookRegistryFactory.php file core/lib/Drupal/Core/Update/UpdateHookRegistryFactory.php
UpdateHookRegistryFactory::create function core/lib/Drupal/Core/Update/UpdateHookRegistryFactory.php Creates a new UpdateHookRegistry instance.
UpdateHookRegistryTest class core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php @coversDefaultClass \Drupal\Core\Update\UpdateHookRegistry[[api-linebreak]]
@group Update
UpdateHookRegistryTest.php file core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php
UpdateHookRegistryTest::$equivalentUpdatesStore property core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php
UpdateHookRegistryTest::$keyValueFactory property core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php
UpdateHookRegistryTest::$keyValueStore property core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php
UpdateHookRegistryTest::setUp function core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php
UpdateHookRegistryTest::testGetInstalledVersion function core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php @covers ::getInstalledVersion[[api-linebreak]]
@covers ::getAllInstalledVersions[[api-linebreak]]
@covers ::setInstalledVersion[[api-linebreak]]
@covers ::deleteInstalledVersion[[api-linebreak]]
UpdateHookRegistryTest::testGetVersions function core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php @covers ::getAvailableUpdates[[api-linebreak]]
UpdatePathTestBaseTest::testUpdateHookN function core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php Tests that updates are properly run.
UpdateSchemaTest::testUpdateHooks function core/modules/system/tests/src/Functional/UpdateSystem/UpdateSchemaTest.php Tests that update hooks are properly run.
update_test_broken_theme_hook.info.yml file core/modules/system/tests/modules/update_test_broken_theme_hook/update_test_broken_theme_hook.info.yml core/modules/system/tests/modules/update_test_broken_theme_hook/update_test_broken_theme_hook.info.yml
update_test_broken_theme_hook.module file core/modules/system/tests/modules/update_test_broken_theme_hook/update_test_broken_theme_hook.module Hook implementations for the update_test_broken_theme_hook module.
update_test_broken_theme_hook_theme function core/modules/system/tests/modules/update_test_broken_theme_hook/update_test_broken_theme_hook.module Implements hook_theme().
update_test_invalid_hook.info.yml file core/modules/system/tests/modules/update_test_invalid_hook/update_test_invalid_hook.info.yml core/modules/system/tests/modules/update_test_invalid_hook/update_test_invalid_hook.info.yml
update_test_invalid_hook.install file core/modules/system/tests/modules/update_test_invalid_hook/update_test_invalid_hook.install Install, update and uninstall functions for the update_test_invalid_hook module.
update_test_invalid_hook_update_8000 function core/modules/system/tests/modules/update_test_invalid_hook/update_test_invalid_hook.install Hook implementation using the reserved schema version 8000.
user_hooks_test.info.yml file core/modules/user/tests/modules/user_hooks_test/user_hooks_test.info.yml core/modules/user/tests/modules/user_hooks_test/user_hooks_test.info.yml
user_hooks_test.module file core/modules/user/tests/modules/user_hooks_test/user_hooks_test.module Support module for user hooks testing.
user_hooks_test_user_format_name_alter function core/modules/user/tests/modules/user_hooks_test/user_hooks_test.module Implements hook_user_format_name_alter().
ViewsDisplay::$uses_hook_block property core/modules/views/src/Annotation/ViewsDisplay.php Does the display plugin provide blocks.
ViewsHandlerManagerTest::testAlterHookInvocation function core/modules/views/tests/src/Unit/ViewsHandlerManagerTest.php Tests that hook_views_plugins_TYPE_alter() is invoked for a handler type.
ViewsHooksTest class core/modules/views/tests/src/Kernel/ViewsHooksTest.php Tests that views hooks are registered when defined in $module.views.inc.
ViewsHooksTest.php file core/modules/views/tests/src/Kernel/ViewsHooksTest.php
ViewsHooksTest::$hooks property core/modules/views/tests/src/Kernel/ViewsHooksTest.php An array of available views hooks to test.
ViewsHooksTest::$moduleHandler property core/modules/views/tests/src/Kernel/ViewsHooksTest.php The module handler to use for invoking hooks.
ViewsHooksTest::$testViews property core/modules/views/tests/src/Kernel/ViewsHooksTest.php Views used by this test.
ViewsHooksTest::$viewStorage property core/modules/views/tests/src/Kernel/ViewsHooksTest.php The view storage.
ViewsHooksTest::setUp function core/modules/views/tests/src/Kernel/ViewsHooksTest.php
ViewsHooksTest::testHooks function core/modules/views/tests/src/Kernel/ViewsHooksTest.php Tests the hooks.
ViewsHooksTest::testViewsFormMainFormPreRender function core/modules/views/tests/src/Kernel/ViewsHooksTest.php Tests how hook_views_form_substitutions() makes substitutions.
ViewsHooksTest::testViewsInvalidateCacheOnDelete function core/modules/views/tests/src/Kernel/ViewsHooksTest.php Test that hook_views_invalidate_cache() is called when a view is deleted.
ViewsLocalTaskTest::testGetDerivativeDefinitionsWithoutHookMenuViews function core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php Tests fetching the derivatives on no view with hook menu.
views_hook_info function core/modules/views/views.module Implements hook_hook_info().

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