common-test-render-element.html.twig

Same filename in other branches
  1. 8.9.x core/modules/system/tests/modules/common_test/templates/common-test-render-element.html.twig
  2. 10 core/modules/system/tests/modules/common_test/templates/common-test-render-element.html.twig
  3. 11.x core/modules/system/tests/modules/common_test/templates/common-test-render-element.html.twig

Default theme implementation for the common test render element.

Available variables:

  • foo: A render array.
2 theme calls to common-test-render-element.html.twig
RendererBubblingTest::providerTestBubblingWithPrerender in core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php
Provides two test elements: one without, and one with the theme system.
RenderTest::testDrupalRenderThemePreprocessAttached in core/tests/Drupal/KernelTests/Core/Render/RenderTest.php
Tests theme preprocess functions being able to attach assets.

File

core/modules/system/tests/modules/common_test/templates/common-test-render-element.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the common test render element.
  5. *
  6. * Available variables:
  7. * - foo: A render array.
  8. *
  9. * @ingroup themeable
  10. */
  11. #}
  12. {{ foo }}

Related topics


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