You are here

smart-title.html.twig in Smart Title 8

Default theme implementation of a smart_title.

Used as a theme wrapper for any renderable element, to surround it with a custom html tag and HTML attributes. See \Drupal\Core\Render\Element\RenderElement for more information on the #theme_wrappers render array property, and \Drupal\Core\Render\Element\container for usage of the container render element.

Available variables:

  • attributes: HTML attributes for the containing element.
  • children: The rendered child elements of the container.

File

templates/smart-title.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation of a smart_title.
  5. *
  6. * Used as a theme wrapper for any
  7. * renderable element, to surround it with a custom html tag and HTML attributes.
  8. * See \Drupal\Core\Render\Element\RenderElement for more
  9. * information on the #theme_wrappers render array property, and
  10. * \Drupal\Core\Render\Element\container for usage of the container render
  11. * element.
  12. *
  13. * Available variables:
  14. * - attributes: HTML attributes for the containing element.
  15. * - children: The rendered child elements of the container.
  16. *
  17. * @see template_preprocess_smart_title()
  18. *
  19. * @ingroup themeable
  20. */
  21. #}
  22. <{{ tag }}{{ attributes.addClass(classes) }}>{{ children }}</{{ tag }}>