116 functions implement hook_preprocess_HOOK()

Note: the procedural functions in this list are found by pattern matching, so the list may include some functions that are not actually implementations of this hook.

aggregator_preprocess_block in core/modules/aggregator/aggregator.module
Implements hook_preprocess_HOOK() for block templates.
bartik_preprocess_block in core/themes/bartik/bartik.theme
Implements hook_preprocess_HOOK() for block.html.twig.
bartik_preprocess_html in core/themes/bartik/bartik.theme
Implements hook_preprocess_HOOK() for HTML document templates.
bartik_preprocess_image_widget in core/themes/bartik/bartik.theme
Implements hook_preprocess_image_widget().
bartik_preprocess_links in core/themes/bartik/bartik.theme
Implements template_preprocess_links().
bartik_preprocess_links__media_library_menu in core/themes/bartik/bartik.theme
Implements hook_preprocess_links__media_library_menu().
bartik_preprocess_maintenance_page in core/themes/bartik/bartik.theme
Implements hook_preprocess_HOOK() for maintenance-page.html.twig.
bartik_preprocess_menu in core/themes/bartik/bartik.theme
Implements hook_preprocess_HOOK() for menu.html.twig.
bartik_preprocess_node in core/themes/bartik/bartik.theme
Implements hook_preprocess_HOOK() for node.html.twig.
bartik_preprocess_page_title in core/themes/bartik/bartik.theme
Implements hook_preprocess_HOOK() for page title templates.
classy_preprocess_image_widget in core/themes/classy/classy.theme
Implements hook_preprocess_image_widget().
classy_preprocess_links__media_library_menu in core/themes/classy/classy.theme
Implements hook_preprocess_links__media_library_menu().
comment_empty_title_test_preprocess_comment in core/modules/comment/tests/modules/comment_empty_title_test/comment_empty_title_test.module
Implements hook_preprocess_comment().
content_moderation_preprocess_node in core/modules/content_moderation/content_moderation.module
Implements hook_preprocess_HOOK().
forum_preprocess_block in core/modules/forum/forum.module
Implements hook_preprocess_HOOK() for block templates.
layout_builder_preprocess_language_content_settings_table in core/modules/layout_builder/layout_builder.module
Implements hook_preprocess_HOOK() for language-content-settings-table.html.twig.
layout_builder_test_preprocess_layout__onecol in core/modules/layout_builder/tests/modules/layout_builder_test/layout_builder_test.module
Implements hook_preprocess_HOOK() for one-column layout template.
layout_builder_test_preprocess_layout__twocol_section in core/modules/layout_builder/tests/modules/layout_builder_test/layout_builder_test.module
Implements hook_preprocess_HOOK() for two-column layout template.
layout_builder_theme_suggestions_test_preprocess_item_list__layouts in core/modules/layout_builder/tests/modules/layout_builder_theme_suggestions_test/layout_builder_theme_suggestions_test.module
Implements hook_preprocess_HOOK() for the list of layouts.
media_test_embed_preprocess_media_embed_error in core/modules/media/tests/modules/media_test_embed/media_test_embed.module
Implements hook_preprocess_HOOK().
media_test_oembed_preprocess_media_oembed_iframe in core/modules/media/tests/modules/media_test_oembed/media_test_oembed.module
Implements hook_preprocess_media_oembed_iframe().
olivero_test_preprocess_field_multiple_value_form in core/modules/system/tests/modules/olivero_test/olivero_test.module
Implements hook_preprocess_field_multiple_value_form().
olivero_test_preprocess_html in core/modules/system/tests/modules/olivero_test/olivero_test.module
Implements hook_preprocess_html().
olivero_test_preprocess_page in core/modules/system/tests/modules/olivero_test/olivero_test.module
Implements hook_preprocess().
pager_test_preprocess_pager in core/modules/system/tests/modules/pager_test/pager_test.module
Implements hook_preprocess_HOOK().
quickedit_preprocess_entity_page_title in core/modules/quickedit/quickedit.module
Implements hook_preprocess_entity_page_title().
quickedit_preprocess_field in core/modules/quickedit/quickedit.module
Implements hook_preprocess_HOOK() for field templates.
quickedit_preprocess_page_title in core/modules/quickedit/quickedit.module
Implements hook_preprocess_HOOK() for the page title template.
rdf_preprocess_comment in core/modules/rdf/rdf.module
Implements hook_preprocess_HOOK() for comment templates.
rdf_preprocess_field__node__uid in core/modules/rdf/rdf.module
Implements hook_preprocess_HOOK() for UID field templates.
rdf_preprocess_html in core/modules/rdf/rdf.module
Implements hook_preprocess_HOOK() for HTML document templates.
rdf_preprocess_image in core/modules/rdf/rdf.module
Implements hook_preprocess_HOOK() for image.html.twig.
rdf_preprocess_node in core/modules/rdf/rdf.module
Implements hook_preprocess_HOOK() for node templates.
rdf_preprocess_taxonomy_term in core/modules/rdf/rdf.module
Implements hook_preprocess_HOOK() for taxonomy term templates.
rdf_preprocess_user in core/modules/rdf/rdf.module
Implements hook_preprocess_HOOK() for user templates.
rdf_preprocess_username in core/modules/rdf/rdf.module
Implements hook_preprocess_HOOK() for username.html.twig.
search_embedded_form_preprocess_search_result in core/modules/search/tests/modules/search_embedded_form/search_embedded_form.module
Adds the test form to search results.
seven_preprocess_admin_block_content in core/themes/seven/seven.theme
Implements hook_preprocess_HOOK() for block admin page templates.
seven_preprocess_block in core/themes/seven/seven.theme
Implements hook_preprocess_block() for block content.
seven_preprocess_block_content_add_list in core/themes/seven/seven.theme
Implements hook_preprocess_HOOK() for block content add list templates.
seven_preprocess_fieldset__media_library_widget in core/themes/seven/seven.theme
@todo Remove this when https://www.drupal.org/project/drupal/issues/2999549 lands.
seven_preprocess_html in core/themes/seven/seven.theme
Implements hook_preprocess_HOOK() for HTML document templates.
seven_preprocess_image_widget in core/themes/seven/seven.theme
Implements hook_preprocess_image_widget().
seven_preprocess_install_page in core/themes/seven/seven.theme
Implements hook_preprocess_install_page().
seven_preprocess_item_list__media_library_add_form_media_list in core/themes/seven/seven.theme
Implements hook_preprocess_item_list__media_library_add_form_media_list().
seven_preprocess_links in core/themes/seven/seven.theme
Implements template_preprocess_links().
seven_preprocess_links__media_library_menu in core/themes/seven/seven.theme
Implements hook_preprocess_links__media_library_menu().
seven_preprocess_maintenance_page in core/themes/seven/seven.theme
Implements hook_preprocess_maintenance_page().
seven_preprocess_media_library_item__small in core/themes/seven/seven.theme
Implements hook_preprocess_media_library_item__small().
seven_preprocess_media_library_item__widget in core/themes/seven/seven.theme
Implements hook_preprocess_media_library_item__widget().
seven_preprocess_menu_local_action in core/themes/seven/seven.theme
Implements hook_preprocess_HOOK() for menu-local-action templates.
seven_preprocess_menu_local_task in core/themes/seven/seven.theme
Implements hook_preprocess_HOOK() for menu-local-task templates.
seven_preprocess_menu_local_tasks in core/themes/seven/seven.theme
Implements hook_preprocess_HOOK() for menu-local-tasks templates.
seven_preprocess_node_add_list in core/themes/seven/seven.theme
Implements hook_preprocess_HOOK() for list of available node type templates.
seven_preprocess_update_version in core/themes/seven/seven.theme
Prepares variables for update version templates.
seven_preprocess_views_view_fields__media_library in core/themes/seven/seven.theme
Implements hook_preprocess_views_view_fields().
stable_preprocess_image_widget in core/themes/stable/stable.theme
Implements hook_preprocess_image_widget().
stable_preprocess_links in core/themes/stable/stable.theme
Implements template_preprocess_links().
statistics_preprocess_block in core/modules/statistics/statistics.module
Implements hook_preprocess_HOOK() for block templates.
template_preprocess_aggregator_feed in core/modules/aggregator/aggregator.theme.inc
Prepares variables for aggregator feed templates.
template_preprocess_aggregator_item in core/modules/aggregator/aggregator.theme.inc
Prepares variables for aggregator item templates.
template_preprocess_authorize_report in core/includes/theme.maintenance.inc
Prepares variables for authorize.php operation report templates.
template_preprocess_book_all_books_block in core/modules/book/book.module
Prepares variables for book listing block templates.
template_preprocess_book_export_html in core/modules/book/book.module
Prepares variables for book export templates.
template_preprocess_book_navigation in core/modules/book/book.module
Prepares variables for book navigation templates.
template_preprocess_book_node_export_html in core/modules/book/book.module
Prepares variables for single node export templates.
template_preprocess_breadcrumb in core/includes/theme.inc
Prepares variables for breadcrumb templates.
template_preprocess_checkboxes in core/includes/form.inc
Prepares variables for checkboxes templates.
template_preprocess_ckeditor_settings_toolbar in core/modules/ckeditor/ckeditor.admin.inc
Prepares variables for CKEditor settings toolbar templates.
template_preprocess_color_scheme_form in core/modules/color/color.module
Prepares variables for color scheme form templates.
template_preprocess_container in core/includes/theme.inc
Prepares variables for container templates.
template_preprocess_datetime_form in core/includes/theme.inc
Prepares variables for datetime form element templates.
template_preprocess_datetime_wrapper in core/includes/theme.inc
Prepares variables for datetime form wrapper templates.
template_preprocess_details in core/includes/form.inc
Prepares variables for details element templates.
template_preprocess_field in core/includes/theme.inc
Prepares variables for field templates.
template_preprocess_fieldset in core/includes/form.inc
Prepares variables for fieldset element templates.
template_preprocess_field_multiple_value_form in core/includes/theme.inc
Prepares variables for individual form element templates.
template_preprocess_file_upload_help in core/modules/file/file.field.inc
Prepares variables for file upload help text templates.
template_preprocess_file_widget_multiple in core/modules/file/file.field.inc
Prepares variables for multi file form widget templates.
template_preprocess_form in core/includes/form.inc
Prepares variables for form templates.
template_preprocess_form_element in core/includes/form.inc
Returns HTML for a form element.
template_preprocess_form_element_label in core/includes/form.inc
Prepares variables for form label templates.
template_preprocess_forums in core/modules/forum/forum.module
Prepares variables for forums templates.
template_preprocess_forum_icon in core/modules/forum/forum.module
Prepares variables for forum icon templates.
template_preprocess_forum_list in core/modules/forum/forum.module
Prepares variables for forum list templates.
template_preprocess_forum_submitted in core/modules/forum/forum.module
Prepares variables for forum submission information templates.
template_preprocess_html in core/includes/theme.inc
Prepares variables for HTML document templates.
template_preprocess_image in core/includes/theme.inc
Prepares variables for image templates.
template_preprocess_input in core/includes/form.inc
Prepares variables for input templates.
template_preprocess_install_page in core/includes/theme.inc
Prepares variables for install page templates.
template_preprocess_item_list in core/includes/theme.inc
Prepares variables for item list templates.
template_preprocess_layout_test_2col in core/modules/system/tests/modules/layout_test/layout_test.module
Implements hook_preprocess_HOOK() for layout templates.
template_preprocess_links in core/includes/theme.inc
Prepares variables for links templates.
template_preprocess_maintenance_page in core/includes/theme.inc
Prepares variables for maintenance page templates.
template_preprocess_maintenance_task_list in core/includes/theme.inc
Prepares variables for maintenance task list templates.
template_preprocess_menu_local_action in core/includes/theme.inc
Prepares variables for single local action link templates.
template_preprocess_menu_local_task in core/includes/theme.inc
Prepares variables for single local task link templates.
template_preprocess_page in core/includes/theme.inc
Prepares variables for the page template.
template_preprocess_pager in core/includes/theme.inc
Prepares variables for pager templates.
template_preprocess_radios in core/includes/form.inc
Prepares variables for radios templates.
template_preprocess_rdf_metadata in core/modules/rdf/rdf.module
Prepares variables for RDF metadata templates.
template_preprocess_region in core/includes/theme.inc
Prepares variables for region templates.
template_preprocess_select in core/includes/form.inc
Prepares variables for select element templates.
template_preprocess_table in core/includes/theme.inc
Prepares variables for table templates.
template_preprocess_textarea in core/includes/form.inc
Prepares variables for textarea templates.
template_preprocess_theme_test_function_suggestions in core/modules/system/tests/modules/theme_legacy_test/theme_legacy_test.module
Implements template_preprocess_HOOK() for theme_test_function_suggestions theme functions.
template_preprocess_time in core/includes/theme.inc
Prepares variables for time templates.
template_preprocess_vertical_tabs in core/includes/form.inc
Prepares variables for vertical tabs templates.
test_basetheme_preprocess_theme_test_function_suggestions in core/modules/system/tests/themes/test_basetheme/test_basetheme.theme
Implements hook_preprocess_HOOK() for theme_test_function_suggestions theme functions.
test_basetheme_preprocess_theme_test_template_test in core/modules/system/tests/themes/test_basetheme/test_basetheme.theme
Implements hook_preprocess_HOOK() for theme_test_template_test templates.
test_legacy_theme_theme_test_preprocess_suggestions__kitten__meerkat in core/modules/system/tests/themes/test_legacy_theme/test_legacy_theme.theme
Tests a theme overriding a suggestion of a base theme hook.
test_stable_preprocess_theme_test_render_element in core/tests/fixtures/test_stable/test_stable.theme
Implements hook_preprocess_theme_test_render_element().
theme_region_test_preprocess_region in core/modules/system/tests/modules/theme_region_test/theme_region_test.module
Implements hook_preprocess_HOOK() for region templates.
toolbar_test_preprocess_menu in core/modules/toolbar/tests/modules/toolbar_test/toolbar_test.module
Implements hook_preprocess_HOOK().
twig_theme_test_preprocess_status_messages in core/modules/system/tests/modules/twig_theme_test/twig_theme_test.module
Implements template_preprocess_status_messages().
views_test_rss_preprocess_views_view_rss in core/modules/views/tests/modules/views_test_rss/views_test_rss.module
Implements hook_preprocess_HOOK().

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