Search for theme_

  1. Search 7.x for theme_
  2. Search 9.5.x for theme_
  3. Search 8.9.x for theme_
  4. Search 10.3.x for theme_
  5. Search 11.x for theme_
  6. Other projects
Title Object type File name Summary
ToolbarThemeHooks::theme function core/modules/toolbar/src/Hook/ToolbarThemeHooks.php Implements hook_theme().
ToolbarThemeHooks::themeRegistryAlter function core/modules/toolbar/src/Hook/ToolbarThemeHooks.php Implements hook_theme_registry_alter().
ToolbarThemeHooks::__construct function core/modules/toolbar/src/Hook/ToolbarThemeHooks.php
twig-theme-test-embed-tag-embedded.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig-theme-test-embed-tag-embedded.html.twig This line is from twig_theme_test/templates/twig-theme-test-embed-tag-embedded.html.twig
twig.loader.theme_registry service core/core.services.yml Drupal\Core\Template\Loader\ThemeRegistryLoader
TwigDeprecationsTest::testHookThemeDeprecations function core/tests/Drupal/KernelTests/Core/Theme/TwigDeprecationsTest.php Test deprecating variables at definition in hook_theme().
TwigDeprecationsTest::testThemeTestDeprecations function core/tests/Drupal/KernelTests/Core/Theme/TwigDeprecationsTest.php Test theme_test_deprecations_preprocess renders without deprecations.
TwigExtension::$themeManager property core/lib/Drupal/Core/Template/TwigExtension.php The theme manager.
TwigExtension::getActiveThemePath function core/lib/Drupal/Core/Template/TwigExtension.php Gets the path of the active theme.
TwigExtension::suggestThemeHook function core/lib/Drupal/Core/Template/TwigExtension.php Adds a theme suggestion to the element.
TwigExtensionTest::$themeManager property core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php The theme manager.
TwigExtensionTest::setUpMockThemeManager function core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php Reinitializes the theme manager as a mock object.
TwigExtensionTest::testActiveThemePath function core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php Tests the active_theme_path function.
TwigThemeEngine class core/lib/Drupal/Core/Template/TwigThemeEngine.php Twig theme engine.
TwigThemeEngine.php file core/lib/Drupal/Core/Template/TwigThemeEngine.php
TwigThemeEngine::EXTENSION constant core/lib/Drupal/Core/Template/TwigThemeEngine.php
TwigThemeEngine::renderTemplate function core/lib/Drupal/Core/Template/TwigThemeEngine.php
TwigThemeEngine::theme function core/lib/Drupal/Core/Template/TwigThemeEngine.php
TwigThemeEngine::__construct function core/lib/Drupal/Core/Template/TwigThemeEngine.php
TwigThemeTestController class core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Controller routines for Twig theme test routes.
TwigThemeTestController.php file core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php
TwigThemeTestController::attachLibraryRender function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Renders for testing attach_library functions in a Twig template.
TwigThemeTestController::dump function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Renders for testing drupal_dump function.
TwigThemeTestController::embedTagRender function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Renders for testing the embed tag in a Twig template.
TwigThemeTestController::fileUrlRender function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Renders for testing file_url functions in a Twig template.
TwigThemeTestController::linkGeneratorRender function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Renders for testing link_generator functions in a Twig template.
TwigThemeTestController::phpVariablesRender function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Menu callback for testing PHP variables in a Twig template.
TwigThemeTestController::placeholderOutsideTransRender function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Controller for testing the twig placeholder filter outside of {% trans %}.
TwigThemeTestController::registryLoaderRender function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Menu callback for testing the Twig registry loader.
TwigThemeTestController::renderable function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Controller for testing a renderable inside a template.
TwigThemeTestController::transBlockRender function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Menu callback for testing translation blocks in a Twig template.
TwigThemeTestController::urlGeneratorRender function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Renders for testing url_generator functions in a Twig template.
TwigThemeTestController::urlToStringRender function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Renders a URL to a string.
TwigThemeTestHooks class core/modules/system/tests/modules/twig_theme_test/src/Hook/TwigThemeTestHooks.php Hook implementations for twig_theme_test.
TwigThemeTestHooks.php file core/modules/system/tests/modules/twig_theme_test/src/Hook/TwigThemeTestHooks.php
TwigThemeTestHooks::preprocessStatusMessages function core/modules/system/tests/modules/twig_theme_test/src/Hook/TwigThemeTestHooks.php Implements hook_preprocess_HOOK().
TwigThemeTestHooks::theme function core/modules/system/tests/modules/twig_theme_test/src/Hook/TwigThemeTestHooks.php Implements hook_theme().
TwigThemeTestUtils class core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestUtils.php Helper functions used by both test modules and test classes.
TwigThemeTestUtils.php file core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestUtils.php
TwigThemeTestUtils::phpValues function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestUtils.php Helper function to test PHP variables in the Twig engine.
twig_theme_test.attach_library.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.attach_library.html.twig {{ attach_library('core/ckeditor5') }}
twig_theme_test.dump.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.dump.html.twig {% set foo = '💩' %}
{% set bar = '🐣' %}
{% set baz = '☄️' %}
{{ dump(foo) }}
{{ dump() }}
{{ dump(foo, baz) }}
twig_theme_test.embed_tag.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.embed_tag.html.twig {% embed "@twig_theme_test/twig-theme-test-embed-tag-embedded.html.twig" %}

{% endembed %}
twig_theme_test.file_url.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.file_url.html.twig <div>file_url: {{ file_url('core/modules/system/tests/modules/twig_theme_test/js/twig_theme_test.js') }}</div>
<div>file_url: {{ file_url(undefined_variable) }}</div>
twig_theme_test.filter.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.filter.html.twig <div><strong>No author:</strong> {{ quote|without('author') }}.</div>
<div><strong>Complete quote after without:</strong> {{ quote }}.</div>
<div><strong>Only author:</strong>…
twig_theme_test.info.yml file core/modules/system/tests/modules/twig_theme_test/twig_theme_test.info.yml core/modules/system/tests/modules/twig_theme_test/twig_theme_test.info.yml
twig_theme_test.link_generator.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.link_generator.html.twig <div>link via the link generator: {{ link('register', test_url) }}</div>
<div>link via the link generator: {{ link('register', test_url, {'foo': 'bar'}) }}</div>
<div>link via the…
twig_theme_test.php_variables.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.php_variables.html.twig {# Output for Twig Theme PHP variables test. #}
<ul>
{% for key, php_value in php_values %}
<li>{{ key }}: {{ php_value.value }}</li>
{% endfor %}
</ul>
twig_theme_test.placeholder_outside_trans.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.placeholder_outside_trans.html.twig Placeholder outside trans: {{ var | placeholder }}

{% trans %}
Placeholder inside trans: {{ var | placeholder }}
{% endtrans %}
twig_theme_test.renderable.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.renderable.html.twig <div>{{ renderable }}</div>

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