Search for _preprocess_

  1. Search 7.x for _preprocess_
  2. Search 9.5.x for _preprocess_
  3. Search 8.9.x for _preprocess_
  4. Search 11.x for _preprocess_
  5. Other projects
Title Object type File name Summary
template_preprocess_views_view_grid function core/modules/views/views.theme.inc Prepares variables for views grid style templates.
template_preprocess_views_view_grid_responsive function core/modules/views/views.theme.inc Prepares variables for views grid - responsive style templates.
template_preprocess_views_view_grouping function core/modules/views/views.theme.inc Prepares variables for views single grouping templates.
template_preprocess_views_view_list function core/modules/views/views.theme.inc Prepares variables for Views HTML list templates.
template_preprocess_views_view_mapping_test function core/modules/views/tests/modules/views_test_data/views_test_data.module Prepares variables for the mapping row style test templates.
template_preprocess_views_view_opml function core/modules/views/views.theme.inc Prepares variables for OPML feed templates.
template_preprocess_views_view_row_opml function core/modules/views/views.theme.inc Prepares variables for views OPML item templates.
template_preprocess_views_view_row_rss function core/modules/views/views.theme.inc Prepares variables for views RSS item templates.
template_preprocess_views_view_rss function core/modules/views/views.theme.inc Prepares variables for RSS feed templates.
template_preprocess_views_view_summary function core/modules/views/views.theme.inc Prepares variables for views summary templates.
template_preprocess_views_view_summary_unformatted function core/modules/views/views.theme.inc Prepares variables for unformatted summary view templates.
template_preprocess_views_view_table function core/modules/views/views.theme.inc Prepares variables for views table templates.
template_preprocess_views_view_unformatted function core/modules/views/views.theme.inc Prepares variables for views unformatted rows templates.
test_basetheme_preprocess_theme_test_function_suggestions function 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 function core/modules/system/tests/themes/test_basetheme/test_basetheme.theme Implements hook_preprocess_HOOK() for theme_test_template_test templates.
test_stable_preprocess_theme_test_render_element function core/tests/fixtures/test_stable/test_stable.theme Implements hook_preprocess_theme_test_render_element().
test_subsubtheme_preprocess_theme_test_template_test function core/modules/system/tests/themes/test_subsubtheme/test_subsubtheme.theme Implements hook_preprocess_HOOK() for theme_test_template_test templates.
test_subtheme_preprocess_theme_test_template_test function core/modules/system/tests/themes/test_subtheme/test_subtheme.theme Implements hook_preprocess_HOOK() for theme_test_template_test templates.
test_theme_nyan_cat_engine_preprocess_theme_test_template_test function core/modules/system/tests/themes/test_theme_nyan_cat_engine/test_theme_nyan_cat_engine.theme Implements hook_preprocess_theme_test_template_test().
test_theme_preprocess_theme_test_preprocess_suggestions function core/modules/system/tests/themes/test_theme/test_theme.theme Tests a theme overriding a default hook with a suggestion.
test_theme_preprocess_theme_test_preprocess_suggestions__kitten function core/modules/system/tests/themes/test_theme/test_theme.theme Tests a theme overriding a default hook with a suggestion.
test_theme_preprocess_theme_test_preprocess_suggestions__kitten__flamingo function core/modules/system/tests/themes/test_theme/test_theme.theme Tests a theme overriding a default hook with a suggestion.
test_theme_preprocess_theme_test_preprocess_suggestions__kitten__meerkat__tarsier__moose function core/modules/system/tests/themes/test_theme/test_theme.theme Tests a preprocess function with suggestions.
test_theme_preprocess_theme_test_preprocess_suggestions__suggestion function core/modules/system/tests/themes/test_theme/test_theme.theme Tests a theme overriding a default hook with a suggestion.
test_theme_preprocess_theme_test_theme_class function core/modules/system/tests/themes/test_theme/test_theme.theme Tests that a class can be loaded within a .theme file.
test_theme_preprocess_twig_theme_test_php_variables function core/modules/system/tests/themes/test_theme/test_theme.theme Implements THEME_preprocess_twig_theme_test_php_variables().
theme-test-deprecations-preprocess.html.twig file core/modules/system/tests/modules/theme_test/templates/theme-test-deprecations-preprocess.html.twig {# Test use of variables deprecated in a preprocess hook. #}
{% set set_var = 'set_var' %}
{{- foo }}|
{{- set_var }}|
{%- for for_var in contents %}
{{- for_var }}|
{%- endfor %}
{{- bar }}
theme-test-preprocess-callback.html.twig file core/modules/system/tests/modules/theme_test/templates/theme-test-preprocess-callback.html.twig {{ foo }}
theme-test-preprocess-suggestions--kitten--bearcat.html.twig file core/modules/system/tests/themes/test_theme/templates/theme-test-preprocess-suggestions--kitten--bearcat.html.twig <div class="suggestion">{{ foo }}</div>
{% if bar %}
<div class="suggestion">{{ bar }}</div>
{% endif %}
theme-test-preprocess-suggestions--suggestion.html.twig file core/modules/system/tests/themes/test_theme/templates/theme-test-preprocess-suggestions--suggestion.html.twig <div class="suggestion">{{ foo }}</div>
theme-test-preprocess-suggestions.html.twig file core/modules/system/tests/modules/theme_test/templates/theme-test-preprocess-suggestions.html.twig <div class="suggestion">{{ foo }}</div>
{% if bar %}
<div class="suggestion">{{ bar }}</div>
{% endif %}
ThemeTest::testPreprocessCallback function core/modules/system/tests/src/Functional/Theme/ThemeTest.php Ensures that preprocess callbacks can be defined.
ThemeTest::testPreprocessForSuggestions function core/modules/system/tests/src/Functional/Theme/ThemeTest.php Ensures preprocess functions run even for suggestion implementations.
ThemeTest::testPreprocessHtml function core/modules/system/tests/src/Functional/Theme/ThemeTest.php Tests that the page variable is not prematurely flattened.
ThemeTest::testSuggestionPreprocessForDefaults function core/modules/system/tests/src/Functional/Theme/ThemeTest.php Ensures suggestion preprocess functions run for default implementations.
ThemeTestController::preprocessCallback function core/modules/system/tests/modules/theme_test/src/ThemeTestController.php Controller for testing callable preprocess functions.
ThemeTestController::preprocessSuggestions function core/modules/system/tests/modules/theme_test/src/ThemeTestController.php Controller for testing preprocess functions with theme suggestions.
ThemeTestPreprocess.php file core/modules/system/tests/modules/theme_test/src/ThemeTestPreprocess.php
ThemeTestPreprocess::preprocess function core/modules/system/tests/modules/theme_test/src/ThemeTestPreprocess.php Preprocess callback for testing preprocess callbacks.
theme_region_test_preprocess_region function core/modules/system/tests/modules/theme_region_test/theme_region_test.module Implements hook_preprocess_HOOK() for region templates.
theme_test_preprocess_html function core/modules/system/tests/modules/theme_test/theme_test.module Implements hook_preprocess_HOOK() for HTML document templates.
theme_test_preprocess_theme_test_preprocess_suggestions function core/modules/system/tests/modules/theme_test/theme_test.module Implements hook_preprocess_HOOK().
theme_test_preprocess_theme_test_preprocess_suggestions__monkey function core/modules/system/tests/modules/theme_test/theme_test.module Tests a module overriding a default hook with a suggestion.
theme_test_theme_suggestions_theme_test_preprocess_suggestions function core/modules/system/tests/modules/theme_test/theme_test.module Implements hook_theme_suggestions_HOOK().
toolbar_preprocess_html function core/modules/toolbar/toolbar.module Implements hook_preprocess_HOOK() for HTML document templates.
toolbar_test_preprocess_menu function core/modules/toolbar/tests/modules/toolbar_test/toolbar_test.module Implements hook_preprocess_HOOK().
twig_theme_test_preprocess_status_messages function core/modules/system/tests/modules/twig_theme_test/twig_theme_test.module Implements template_preprocess_status_messages().
umami_preprocess_block function core/profiles/demo_umami/themes/umami/umami.theme Implements hook_preprocess_block().
umami_preprocess_block__bundle__banner_block function core/profiles/demo_umami/themes/umami/umami.theme Implements hook_umami_preprocess_block__bundle__banner_block().
umami_preprocess_block__bundle__footer_promo_block function core/profiles/demo_umami/themes/umami/umami.theme Implements hook_umami_preprocess_block__bundle__footer_promo_block().

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