Search for all

  1. Search 7.x for all
  2. Search 9.5.x for all
  3. Search 8.9.x for all
  4. Search 10.3.x for all
  5. Search 11.x for all
  6. Other projects
Title Object type File name Summary
Theme class core/lib/Drupal/Core/Extension/Theme.php The Theme extension object.
Theme system overview group core/lib/Drupal/Core/Render/theme.api.php Functions and templates for the user interface that themes can override.
theme-settings.php file core/themes/olivero/theme-settings.php Functions to support Olivero theme settings.
theme-settings.php file core/modules/system/tests/themes/test_theme_settings/theme-settings.php
theme-test--suggestion.html.twig file core/modules/system/tests/themes/test_theme/templates/theme-test--suggestion.html.twig {# Output for Theme API test #}
Theme hook implementor=theme-test--suggestion.html.twig. Foo={{ foo }}
theme-test-deprecations-child.html.twig file core/modules/system/tests/modules/theme_test/templates/theme-test-deprecations-child.html.twig {# Test use of deprecated variables in a child template. #}
{{- foo }}|
{{- gaz }}
theme-test-deprecations-hook-theme.html.twig file core/modules/system/tests/modules/theme_test/templates/theme-test-deprecations-hook-theme.html.twig {# Test variables deprecated in hook_theme(). #}
{{ foo }}
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-foo.html.twig file core/modules/system/tests/modules/theme_test/templates/theme-test-foo.html.twig {# Output for Theme API test #}
{{ foo -}}
theme-test-function-template-override.html.twig file core/modules/system/tests/themes/test_theme/theme-test-function-template-override.html.twig {# Output for Theme API test #}
Success: Template overrides theme function.
theme-test-general-suggestions--module-override.html.twig file core/modules/system/tests/themes/test_theme/templates/theme-test-general-suggestions--module-override.html.twig {# Output for Theme API test #}
Template overridden based on new theme suggestion provided by a module via hook_theme_suggestions_alter().
Hooks: {{ module_hook }} {{ theme_hook }}
theme-test-general-suggestions--theme-override.html.twig file core/modules/system/tests/themes/test_theme/templates/theme-test-general-suggestions--theme-override.html.twig {# Output for Theme API test #}
Template overridden based on new theme suggestion provided by the test_theme theme via hook_theme_suggestions_alter().
Hooks: {{ module_hook }} {{ theme_hook }}
theme-test-general-suggestions.html.twig file core/modules/system/tests/modules/theme_test/templates/theme-test-general-suggestions.html.twig {# Output for Theme API test #}
Original template for testing hook_theme_suggestions_alter().
Hooks: {{ module_hook }} {{ theme_hook }}
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 %}
theme-test-registered-by-module.html.twig file core/modules/system/tests/themes/test_theme/templates/theme-test-registered-by-module.html.twig {# Output for Theme API test #}
Template provided by theme is registered by module.
theme-test-render-element-children.html.twig file core/modules/system/tests/modules/theme_test/templates/theme-test-render-element-children.html.twig {# Output for Theme API test #}
{{ element -}}
theme-test-render-element.html.twig file core/modules/system/tests/modules/theme_test/templates/theme-test-render-element.html.twig <div{{ attributes }}></div>
theme-test-specific-suggestions--variant--foo.html.twig file core/modules/system/tests/themes/test_theme/templates/theme-test-specific-suggestions--variant--foo.html.twig {# Output for Theme API test #}
Template overridden based on suggestion alter hook determined by the base hook.

<p>Theme hook suggestions:
{{ theme_hook_suggestions|safe_join("<br />") }}</p>
theme-test-specific-suggestions--variant.html.twig file core/modules/system/tests/themes/test_theme/templates/theme-test-specific-suggestions--variant.html.twig {# Output for Theme API test #}
Template matching the specific theme call.

<p>Theme hook suggestions:
{{ theme_hook_suggestions|safe_join("<br />") }}</p>
theme-test-specific-suggestions.html.twig file core/modules/system/tests/modules/theme_test/templates/theme-test-specific-suggestions.html.twig {# Output for Theme API test #}
Template for testing specific theme calls.
theme-test-suggestion-provided--deprecated.html.twig file core/modules/system/tests/themes/test_deprecated_suggestion_theme/templates/theme-test-suggestion-provided--deprecated.html.twig {# Output for Theme API test #}
Template overridden based on a deprecated theme suggestion.
theme-test-suggestion-provided--foo.html.twig file core/modules/system/tests/themes/test_theme/templates/theme-test-suggestion-provided--foo.html.twig {# Output for Theme API test #}
Template overridden based on suggestion provided by the module declaring the theme hook.
theme-test-suggestion-provided.html.twig file core/modules/system/tests/modules/theme_test/templates/theme-test-suggestion-provided.html.twig {# Output for Theme API test #}
Template for testing suggestions provided by the module declaring the theme hook.
theme-test-suggestions--module-override.html.twig file core/modules/system/tests/themes/test_theme/templates/theme-test-suggestions--module-override.html.twig {# Output for Theme API test #}
Template overridden based on new theme suggestion provided by a module via hook_theme_suggestions_HOOK_alter().
theme-test-suggestions--theme-override.html.twig file core/modules/system/tests/themes/test_theme/templates/theme-test-suggestions--theme-override.html.twig {# Output for Theme API test #}
Template overridden based on new theme suggestion provided by the test_theme theme via hook_theme_suggestions_HOOK_alter().
theme-test-suggestions.html.twig file core/modules/system/tests/modules/theme_test/templates/theme-test-suggestions.html.twig {# Output for Theme API test #}
Original template for testing hook_theme_suggestions_HOOK_alter().
theme.api.php file core/lib/Drupal/Core/Render/theme.api.php Hooks and documentation related to the theme and render system.
theme.css file core/assets/vendor/jquery.ui/themes/base/theme.css /*!
* jQuery UI CSS Framework 1.14.1
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
* https://jquery.org/license
*
* https://api.jqueryui.com/category/theming/
*
* To view and…
theme.css file core/themes/admin/css/components/jquery.ui/theme.css Claro styles for jQuery UI.
Overrides /core/assets/vendor/jquery.ui/themes/base/theme.css.
theme.css file core/themes/default_admin/css/components/jquery.ui/theme.css Claro styles for jQuery UI.
Overrides /core/assets/vendor/jquery.ui/themes/base/theme.css.
theme.css file core/themes/claro/css/components/jquery.ui/theme.css Claro styles for jQuery UI.
Overrides /core/assets/vendor/jquery.ui/themes/base/theme.css.
theme.inc file core/includes/theme.inc The theme system, which controls the output of Drupal.
theme.initialization service core/core.services.yml Drupal\Core\Theme\ThemeInitialization
theme.maintenance.inc file core/includes/theme.maintenance.inc Theming for maintenance pages.
theme.manager service core/core.services.yml Drupal\Core\Theme\ThemeManager
theme.negotiator service core/core.services.yml Drupal\Core\Theme\ThemeNegotiator
theme.negotiator.admin_theme service core/modules/user/user.services.yml Drupal\user\Theme\AdminNegotiator
theme.negotiator.ajax_base_page service core/core.services.yml Drupal\Core\Theme\AjaxBasePageNegotiator
theme.negotiator.block.admin_demo service core/modules/block/block.services.yml Drupal\block\Theme\AdminDemoNegotiator
theme.negotiator.contextual_links service core/modules/contextual/contextual.services.yml Drupal\contextual\Theme\ContextualLinksNegotiator
theme.negotiator.default service core/core.services.yml Drupal\Core\Theme\DefaultNegotiator
theme.negotiator.high_priority service core/modules/system/tests/modules/theme_test/theme_test.services.yml Drupal\theme_test\Theme\HighPriorityThemeNegotiator
theme.negotiator.system.batch service core/modules/system/system.services.yml Drupal\system\Theme\BatchNegotiator
theme.negotiator.system.db_update service core/modules/system/system.services.yml Drupal\system\Theme\DbUpdateNegotiator
theme.negotiator.test_custom_theme service core/modules/system/tests/modules/theme_test/theme_test.services.yml Drupal\theme_test\Theme\CustomThemeNegotiator
theme.negotiator.test_theme service core/modules/system/tests/modules/menu_test/menu_test.services.yml Drupal\menu_test\Theme\TestThemeNegotiator
theme.pcss.css file core/themes/default_admin/css/components/jquery.ui/theme.pcss.css Claro styles for jQuery UI.
Overrides /core/assets/vendor/jquery.ui/themes/base/theme.css.

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