Search for %s

  1. Search 7.x for %s
  2. Search 8.9.x for %s
  3. Search 10.3.x for %s
  4. Search 11.x for %s
  5. Search main for %s
  6. Other projects
Title Object type File name Summary
TwigTransTokenParser.php file core/lib/Drupal/Core/Template/TwigTransTokenParser.php
TwigTransTokenParser::checkTransString function core/lib/Drupal/Core/Template/TwigTransTokenParser.php Ensure that any nodes that are parsed are only of allowed types.
TwigTransTokenParser::decideForEnd function core/lib/Drupal/Core/Template/TwigTransTokenParser.php Detect the end of a 'trans' tag.
TwigTransTokenParser::decideForFork function core/lib/Drupal/Core/Template/TwigTransTokenParser.php Detect a 'plural' switch or the end of a 'trans' tag.
TwigTransTokenParser::getTag function core/lib/Drupal/Core/Template/TwigTransTokenParser.php
TwigTransTokenParser::parse function core/lib/Drupal/Core/Template/TwigTransTokenParser.php
TwigWhiteListTest class core/tests/Drupal/KernelTests/Core/Theme/TwigWhiteListTest.php Tests white-listing of entity properties.
TwigWhiteListTest.php file core/tests/Drupal/KernelTests/Core/Theme/TwigWhiteListTest.php
TwigWhiteListTest::$modules property core/tests/Drupal/KernelTests/Core/Theme/TwigWhiteListTest.php Modules to enable.
TwigWhiteListTest::$term property core/tests/Drupal/KernelTests/Core/Theme/TwigWhiteListTest.php Term for referencing.
TwigWhiteListTest::$twig property core/tests/Drupal/KernelTests/Core/Theme/TwigWhiteListTest.php Twig environment.
TwigWhiteListTest::setUp function core/tests/Drupal/KernelTests/Core/Theme/TwigWhiteListTest.php
TwigWhiteListTest::testWhiteListChaining function core/tests/Drupal/KernelTests/Core/Theme/TwigWhiteListTest.php Tests white-listing of methods doesn't interfere with chaining.
twig_extension function core/themes/engines/twig/twig.engine Implements hook_extension().
twig_extension_test.filter.html.twig file core/modules/system/tests/modules/twig_extension_test/templates/twig_extension_test.filter.html.twig <div class="testfilter">
{{ message|testfilter }}
</div>
<div>
{{ safe_join_items|safe_join('<br/>') }}
</div>
twig_extension_test.function.html.twig file core/modules/system/tests/modules/twig_extension_test/templates/twig_extension_test.function.html.twig <div class="testfunction">
{{ testfunc(1) }}
</div>

<div class="testfunction">
{{ testfunc(0) }}
</div>
twig_extension_test.info.yml file core/modules/system/tests/modules/twig_extension_test/twig_extension_test.info.yml core/modules/system/tests/modules/twig_extension_test/twig_extension_test.info.yml
twig_extension_test.module file core/modules/system/tests/modules/twig_extension_test/twig_extension_test.module Helper module for Twig extension tests.
twig_extension_test.routing.yml file core/modules/system/tests/modules/twig_extension_test/twig_extension_test.routing.yml core/modules/system/tests/modules/twig_extension_test/twig_extension_test.routing.yml
twig_extension_test.services.yml file core/modules/system/tests/modules/twig_extension_test/twig_extension_test.services.yml core/modules/system/tests/modules/twig_extension_test/twig_extension_test.services.yml
twig_extension_test.twig.test_extension service core/modules/system/tests/modules/twig_extension_test/twig_extension_test.services.yml Drupal\twig_extension_test\TwigExtension\TestExtension
twig_extension_test_theme function core/modules/system/tests/modules/twig_extension_test/twig_extension_test.module Implements hook_theme().
twig_loader_test.info.yml file core/modules/system/tests/modules/twig_loader_test/twig_loader_test.info.yml core/modules/system/tests/modules/twig_loader_test/twig_loader_test.info.yml
twig_loader_test.services.yml file core/modules/system/tests/modules/twig_loader_test/twig_loader_test.services.yml core/modules/system/tests/modules/twig_loader_test/twig_loader_test.services.yml
twig_loader_test.twig.test_loader service core/modules/system/tests/modules/twig_loader_test/twig_loader_test.services.yml Drupal\twig_loader_test\Loader\TestLoader
twig_namespace_a.info.yml file core/modules/system/tests/modules/twig_theme_test/modules/twig_namespace_a/twig_namespace_a.info.yml core/modules/system/tests/modules/twig_theme_test/modules/twig_namespace_a/twig_namespace_a.info.yml
twig_namespace_b.info.yml file core/modules/system/tests/modules/twig_theme_test/modules/twig_namespace_b/twig_namespace_b.info.yml core/modules/system/tests/modules/twig_theme_test/modules/twig_namespace_b/twig_namespace_b.info.yml
twig_namespace_test.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_namespace_test.html.twig {% extends "@twig_namespace_a/test.html.twig" %}

{% block content %}
{% include "@twig_namespace_b/test.html.twig" %}
{% endblock %}
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/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 linkgenerator: {{ link('register', test_url) }}</div>
<div>link via the linkgenerator: {{ link('register', test_url, {'foo': 'bar'}) }}</div>
<div>link via the…
twig_theme_test.module file core/modules/system/tests/modules/twig_theme_test/twig_theme_test.module Test module.
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>
twig_theme_test.routing.yml file core/modules/system/tests/modules/twig_theme_test/twig_theme_test.routing.yml core/modules/system/tests/modules/twig_theme_test/twig_theme_test.routing.yml
twig_theme_test.trans.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.trans.html.twig {# Test trans tag with string argument. #}
<div>
{% trans 'Hello sun.' %}
</div>

{# Test trans tag with string argument and context #}
<div>
{% trans 'Hello sun.' with {'context':…
twig_theme_test.url_generator.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.url_generator.html.twig {# Test the url and path twig functions #}
<div>path (as route) not absolute: {{ path('user.register') }}</div>
<div>url (as route) absolute: {{ url('user.register') }}</div>

<div>path (as route) not…
twig_theme_test.url_to_string.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.url_to_string.html.twig <div>rendered url: {{ test_url }}</div>
twig_theme_test_preprocess_status_messages function core/modules/system/tests/modules/twig_theme_test/twig_theme_test.module Implements template_preprocess_status_messages().
twig_theme_test_theme function core/modules/system/tests/modules/twig_theme_test/twig_theme_test.module Implements hook_theme().
twocol.css file core/modules/layout_discovery/layouts/twocol/twocol.css /*
* @file
* Provides the layout styles for layout_twocol.
*/

.layout--twocol {
display: flex;
flex-wrap: wrap;
}

.layout--twocol > .layout__region {
flex: 0 1 100%;
}

@media screen and (min-width: 40em) {
.layout--twocol >…
twocol.css file core/themes/stable9/layouts/layout_discovery/twocol/twocol.css /*
* @file
* Provides the layout styles for layout_twocol.
*/

.layout--twocol {
display: flex;
flex-wrap: wrap;
}

.layout--twocol > .layout__region {
flex: 0 1 100%;
}

@media screen and (min-width: 40em) {
.layout--twocol >…
TwoColumnLayout::getWidthOptions function core/modules/layout_builder/src/Plugin/Layout/TwoColumnLayout.php Gets the width options for the configuration form.
twocol_bricks.css file core/themes/stable9/layouts/layout_discovery/twocol_bricks/twocol_bricks.css /*
* @file
* Provides the layout styles for layout_twocol_bricks.
*/

.layout--twocol-bricks {
display: flex;
flex-wrap: wrap;
}

.layout--twocol-bricks > .layout__region {
flex: 0 1 100%;
}

@media screen and (min-width: 40em) {
twocol_bricks.css file core/modules/layout_discovery/layouts/twocol_bricks/twocol_bricks.css /*
* @file
* Provides the layout styles for layout_twocol_bricks.
*/

.layout--twocol-bricks {
display: flex;
flex-wrap: wrap;
}

.layout--twocol-bricks > .layout__region {
flex: 0 1 100%;
}

@media screen and (min-width: 40em) {

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