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 10.3.x for _preprocess_
  5. Other projects
Title Object type File name Summary
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_base_theme_preprocess_theme_test_function_suggestions function core/modules/system/tests/themes/test_base_theme/test_base_theme.theme Implements hook_preprocess_HOOK() for theme_test_function_suggestions theme functions.
test_base_theme_preprocess_theme_test_template_test function core/modules/system/tests/themes/test_base_theme/test_base_theme.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 %}
ThemePreprocess.php file core/lib/Drupal/Core/Theme/ThemePreprocess.php
ThemePreprocess::preprocessContainer function core/lib/Drupal/Core/Theme/ThemePreprocess.php Prepares variables for container templates.
ThemePreprocess::preprocessHtml function core/lib/Drupal/Core/Theme/ThemePreprocess.php Prepares variables for HTML document templates.
ThemePreprocess::preprocessInstallPage function core/lib/Drupal/Core/Theme/ThemePreprocess.php Prepares variables for install page templates.
ThemePreprocess::preprocessItemList function core/lib/Drupal/Core/Theme/ThemePreprocess.php Prepares variables for item list templates.
ThemePreprocess::preprocessLinks function core/lib/Drupal/Core/Theme/ThemePreprocess.php Prepares variables for links templates.
ThemePreprocess::preprocessMaintenancePage function core/lib/Drupal/Core/Theme/ThemePreprocess.php Prepares variables for maintenance page templates.
ThemePreprocess::preprocessMaintenanceTaskList function core/lib/Drupal/Core/Theme/ThemePreprocess.php Prepares variables for maintenance task list templates.
ThemePreprocess::preprocessPage function core/lib/Drupal/Core/Theme/ThemePreprocess.php Prepares variables for the page template.
ThemePreprocess::preprocessRegion function core/lib/Drupal/Core/Theme/ThemePreprocess.php Prepares variables for region templates.
ThemePreprocess::preprocessTable function core/lib/Drupal/Core/Theme/ThemePreprocess.php Prepares variables for table templates.
ThemePreprocess::preprocessTablesortIndicator function core/lib/Drupal/Core/Theme/ThemePreprocess.php Prepares variables for tablesort indicators.
ThemePreprocess::__construct function core/lib/Drupal/Core/Theme/ThemePreprocess.php
ThemeRegionTestThemeHooks::preprocessRegion function core/modules/system/tests/modules/theme_region_test/src/Hook/ThemeRegionTestThemeHooks.php Implements hook_preprocess_HOOK() for region templates.
ThemeRegistry::getPreprocessInvokes function core/lib/Drupal/Core/Utility/ThemeRegistry.php Gets preprocess invoke map.
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.
ThemeTestThemeHooks1::preprocessHtml function core/modules/system/tests/modules/theme_test/src/Hook/ThemeTestThemeHooks1.php Implements hook_preprocess_HOOK() for HTML document templates.
ThemeTestThemeHooks1::preprocessThemeTestPreprocessSuggestions function core/modules/system/tests/modules/theme_test/src/Hook/ThemeTestThemeHooks1.php Implements hook_preprocess_HOOK().
ThemeTestThemeHooks1::themeSuggestionsThemeTestPreprocessSuggestions function core/modules/system/tests/modules/theme_test/src/Hook/ThemeTestThemeHooks1.php Implements hook_theme_suggestions_HOOK().
ThemeTestThemeHooks::preprocessTestSuggestions function core/modules/system/tests/modules/theme_test/src/Hook/ThemeTestThemeHooks.php Implements hook_preprocess_HOOK().
ToolbarTestThemeHooks::preprocessMenu function core/modules/toolbar/tests/modules/toolbar_test/src/Hook/ToolbarTestThemeHooks.php Implements hook_preprocess_HOOK().
ToolbarThemeHooks::preprocessHtml function core/modules/toolbar/src/Hook/ToolbarThemeHooks.php Implements hook_preprocess_HOOK() for HTML document templates.

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