Functions - main - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
help_removed_post_updates core/modules/help/help.post_update.php Implements hook_removed_post_updates().
help_schema core/modules/help/help.install Implements hook_schema().
help_update_last_removed core/modules/help/help.install Implements hook_update_last_removed().
hide core/includes/common.inc Hides an element from later rendering. 1 10
hold_test_install core/modules/system/tests/modules/hold_test/hold_test.install Implements hook_install().
hook_admin_content_form_ignore_form_ids core/themes/admin/admin.api.php Register form IDs that should not use the content form.
hook_admin_content_form_routes core/themes/admin/admin.api.php Register routes to apply admin’s content edit form layout.
hook_admin_content_form_routes_alter core/themes/admin/admin.api.php Alter the registered routes to enable or disable admin’s edit form layout.
hook_ajax_render_alter core/lib/Drupal/Core/Form/form.api.php Alter the Ajax command data that is sent to the client.
hook_batch_alter core/lib/Drupal/Core/Form/form.api.php Alter batch information before a batch is processed.
hook_block_access core/modules/block/block.api.php Control access to a block instance.
hook_block_alter core/modules/block/block.api.php Allow modules to alter the block plugin definitions.
hook_block_build_alter core/modules/block/block.api.php Alter the result of \Drupal\Core\Block\BlockBase::build().
hook_block_build_BASE_BLOCK_ID_alter core/modules/block/block.api.php Provide a block plugin specific block_build alteration.
hook_block_view_alter core/modules/block/block.api.php Alter the result of \Drupal\Core\Block\BlockBase::build().
hook_block_view_BASE_BLOCK_ID_alter core/modules/block/block.api.php Provide a block plugin specific block_view alteration.
hook_cache_flush core/core.api.php Flush all persistent and static caches. 1
hook_ckeditor5_plugin_info_alter core/modules/ckeditor5/ckeditor5.api.php Modify the list of available CKEditor 5 plugins.
hook_collector_on_behalf_cache_flush core/modules/system/tests/modules/hook_collector_skip_procedural_attribute/hook_collector_skip_procedural_attribute.module This implements a hook but should not be picked up.
hook_collector_on_behalf_procedural_cache_flush core/modules/system/tests/modules/hook_collector_skip_procedural_attribute/hook_collector_skip_procedural_attribute.module This implements a hook but should not be picked up.
hook_collector_skip_procedural_attribute_cache_flush core/modules/system/tests/modules/hook_collector_skip_procedural_attribute/hook_collector_skip_procedural_attribute.module This implements a hook and should be picked up.
hook_collector_skip_procedural_cache_flush core/modules/system/tests/modules/hook_collector_skip_procedural/hook_collector_skip_procedural.module This implements a hook but should not be picked up.
hook_collector_skip_procedural_custom_function core/modules/system/tests/modules/hook_collector_skip_procedural/hook_collector_skip_procedural.module 1
hook_comment_links_alter core/modules/comment/comment.api.php Alter the links of a comment.
hook_condition_info_alter core/core.api.php Alter the information provided in ConditionManager::getDefinitions().
hook_config_import_steps_alter core/core.api.php Alter the configuration synchronization steps.
hook_config_schema_info_alter core/core.api.php Alter config typed data definitions.
hook_config_translation_info core/modules/config_translation/config_translation.api.php Introduce dynamic translation tabs for translation of configuration.
hook_config_translation_info_alter core/modules/config_translation/config_translation.api.php Alter existing translation tabs for translation of configuration.
hook_contextual_links_alter core/lib/Drupal/Core/Menu/menu.api.php Alter contextual links before they are rendered.
hook_contextual_links_plugins_alter core/lib/Drupal/Core/Menu/menu.api.php Alter the plugin definition of contextual links.
hook_contextual_links_view_alter core/modules/contextual/contextual.api.php Alter a contextual links element before it is rendered.
hook_countries_alter core/core.api.php Alter the default country list.
hook_cron core/core.api.php Perform periodic actions.
hook_css_alter core/lib/Drupal/Core/Render/theme.api.php Alter CSS files before they are output on the page.
hook_data_type_info_alter core/core.api.php Alter available data types for typed data wrappers.
hook_default_admin_content_form_ignore_form_ids core/themes/default_admin/default_admin.api.php Register form IDs that should not use the content form.
hook_default_admin_content_form_routes core/themes/default_admin/default_admin.api.php Register routes to apply admin’s content edit form layout.
hook_default_admin_content_form_routes_alter core/themes/default_admin/default_admin.api.php Alter the registered routes to enable or disable admin’s edit form layout.
hook_display_variant_plugin_alter core/core.api.php Alter display variant plugin definitions.
hook_editor_info_alter core/modules/editor/editor.api.php Performs alterations on text editor definitions.
hook_editor_js_settings_alter core/modules/editor/editor.api.php Modifies JavaScript settings that are added for text editors.
hook_editor_xss_filter_alter core/modules/editor/editor.api.php Modifies the text editor XSS filter that will used for the given text format.
hook_element_info_alter core/lib/Drupal/Core/Render/theme.api.php Alter the element type information returned from modules.
hook_element_plugin_alter core/lib/Drupal/Core/Render/theme.api.php Alter Element plugin definitions.
hook_entity_access core/lib/Drupal/Core/Entity/entity.api.php Control entity operation access.
hook_entity_base_field_info core/lib/Drupal/Core/Entity/entity.api.php Provides custom base field definitions for a content entity type.
hook_entity_base_field_info_alter core/lib/Drupal/Core/Entity/entity.api.php Alter base field definitions for a content entity type.
hook_entity_build_defaults_alter core/lib/Drupal/Core/Entity/entity.api.php Alter entity renderable values before cache checking during rendering.
hook_entity_bundle_create core/lib/Drupal/Core/Entity/entity.api.php Act on entity_bundle_create().

Other projects


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