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.
See also
File
templates/smart-title.html.twigView source
- {#
- /**
- * @file
- * 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.
- *
- * @see template_preprocess_smart_title()
- *
- * @ingroup themeable
- */
- #}
- <{{ tag }}{{ attributes.addClass(classes) }}>{{ children }}</{{ tag }}>