Functions - 9.5.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
hook_migration_plugins_alter core/modules/migrate/migrate.api.php Allows altering the list of discovered migration plugins.
hook_modules_installed core/lib/Drupal/Core/Extension/module.api.php Perform necessary actions after modules are installed.
hook_modules_uninstalled core/lib/Drupal/Core/Extension/module.api.php Perform necessary actions after modules are uninstalled.
hook_module_implements_alter core/lib/Drupal/Core/Extension/module.api.php Alter the registry of modules implementing a hook.
hook_module_preinstall core/lib/Drupal/Core/Extension/module.api.php Perform necessary actions before a module is installed.
hook_module_preuninstall core/lib/Drupal/Core/Extension/module.api.php Perform necessary actions before a module is uninstalled.
hook_node_access_records core/modules/node/node.api.php Set permissions for a node to be written to the database.
hook_node_access_records_alter core/modules/node/node.api.php Alter permissions for a node before it is written to the database.
hook_node_grants core/modules/node/node.api.php Inform the node access system what permissions the user has.
hook_node_grants_alter core/modules/node/node.api.php Alter user access rules when trying to view, edit or delete a node.
hook_node_links_alter core/modules/node/node.api.php Alter the links of a node.
hook_node_search_result core/modules/node/node.api.php Act on a node being displayed as a search result.
hook_node_update_index core/modules/node/node.api.php Act on a node being indexed for searching.
hook_oembed_resource_url_alter core/modules/media/media.api.php Alters an oEmbed resource URL before it is fetched.
hook_options_list_alter core/modules/options/options.api.php Alters the list of options to be displayed for a field.
hook_page_attachments core/lib/Drupal/Core/Render/theme.api.php Add attachments (typically assets) to a page before it is rendered. 1
hook_page_attachments_alter core/lib/Drupal/Core/Render/theme.api.php Alter attachments (typically assets) to a page before it is rendered. 1
hook_page_bottom core/lib/Drupal/Core/Render/theme.api.php Add a renderable array to the bottom of the page.
hook_page_top core/lib/Drupal/Core/Render/theme.api.php Add a renderable array to the top of the page.
hook_plugin_filter_TYPE_alter core/lib/Drupal/Core/Plugin/plugin.api.php Alter the filtering of plugin definitions for a specific plugin type.
hook_plugin_filter_TYPE__CONSUMER_alter core/lib/Drupal/Core/Plugin/plugin.api.php Alter the filtering of plugin definitions for a specific type and consumer.
hook_post_update_NAME core/lib/Drupal/Core/Extension/module.api.php Executes an update which is intended to update data, like entities.
hook_preprocess core/lib/Drupal/Core/Render/theme.api.php Preprocess theme variables for templates.
hook_preprocess_HOOK core/lib/Drupal/Core/Render/theme.api.php Preprocess theme variables for a specific theme hook.
hook_query_alter core/lib/Drupal/Core/Database/database.api.php Perform alterations to a structured query.
hook_query_TAG_alter core/lib/Drupal/Core/Database/database.api.php Perform alterations to a structured query for a given tag.
hook_queue_info_alter core/core.api.php Alter cron queue information before cron runs.
hook_quickedit_editor_alter core/modules/quickedit/quickedit.api.php Allow modules to alter in-place editor plugin metadata.
hook_quickedit_render_field core/modules/quickedit/quickedit.api.php Returns a renderable array for the value of a single field in an entity.
hook_ranking core/modules/node/node.api.php Provide additional methods of scoring for core search results for nodes.
hook_rdf_namespaces core/modules/rdf/rdf.api.php Allow modules to define namespaces for RDF mappings.
hook_rebuild core/core.api.php Rebuild data based upon refreshed caches.
hook_removed_post_updates core/lib/Drupal/Core/Extension/module.api.php Return an array of removed hook_post_update_NAME() function names.
hook_render_template core/lib/Drupal/Core/Render/theme.api.php Render a template using the theme engine.
hook_requirements core/lib/Drupal/Core/Extension/module.api.php Check installation requirements and do status reporting.
hook_requirements_alter core/lib/Drupal/Core/Extension/module.api.php Alters requirements data.
hook_rest_resource_alter core/modules/rest/rest.api.php Alter the resource plugin definitions.
hook_schema core/lib/Drupal/Core/Database/database.api.php Define the current version of the database schema.
hook_search_plugin_alter core/modules/search/search.api.php Alter search plugin definitions.
hook_search_preprocess core/modules/search/search.api.php Preprocess text for search.
hook_shortcut_default_set core/modules/shortcut/shortcut.api.php Return the name of a default shortcut set for the provided user account.
hook_system_breadcrumb_alter core/lib/Drupal/Core/Menu/menu.api.php Perform alterations to the breadcrumb built by the BreadcrumbManager.
hook_system_info_alter core/lib/Drupal/Core/Extension/module.api.php Alter the information parsed from module and theme .info.yml files.
hook_system_themes_page_alter core/modules/system/system.api.php Alters theme operation links.
hook_template_preprocess_default_variables_alter core/lib/Drupal/Core/Render/theme.api.php Alter the default, hook-independent variables for all templates.
hook_theme core/lib/Drupal/Core/Render/theme.api.php Register a module or theme's theme implementations.
hook_themes_installed core/lib/Drupal/Core/Render/theme.api.php Respond to themes being installed.
hook_themes_uninstalled core/lib/Drupal/Core/Render/theme.api.php Respond to themes being uninstalled.
hook_theme_registry_alter core/lib/Drupal/Core/Render/theme.api.php Alter the theme registry information returned from hook_theme().
hook_theme_suggestions_alter core/lib/Drupal/Core/Render/theme.api.php Alters named suggestions for all theme hooks.

Other projects


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