rdf-metadata.html.twig in Drupal 10
Same filename in this branch
- 10 core/modules/rdf/templates/rdf-metadata.html.twig
- 10 core/themes/starterkit_theme/templates/misc/rdf-metadata.html.twig
- 10 core/themes/classy/templates/misc/rdf-metadata.html.twig
- 10 core/themes/stable9/templates/media-library/rdf-metadata.html.twig
- 10 core/themes/stable/templates/misc/rdf-metadata.html.twig
- 10 core/themes/claro/templates/classy/misc/rdf-metadata.html.twig
- 10 core/themes/seven/templates/classy/misc/rdf-metadata.html.twig
- 10 core/themes/bartik/templates/classy/misc/rdf-metadata.html.twig
Same filename and directory in other branches
Default theme implementation for empty spans with RDF attributes.
The XHTML+RDFa doctype allows either <span></span> or <span /> syntax to be used, but for maximum browser compatibility, W3C recommends the former when serving pages using the text/html media type, see http://www.w3.org/TR/xhtml1/#C_3.
Available variables:
- metadata: Each item within corresponds to its own set of attributes, and therefore, needs its own 'attributes' element.
See also
3 theme calls to rdf-metadata.html.twig
- rdf_preprocess_comment in core/
modules/ rdf/ rdf.module - Implements hook_preprocess_HOOK() for comment templates.
- rdf_preprocess_node in core/
modules/ rdf/ rdf.module - Implements hook_preprocess_HOOK() for node templates.
- rdf_preprocess_taxonomy_term in core/
modules/ rdf/ rdf.module - Implements hook_preprocess_HOOK() for taxonomy term templates.
File
core/modules/rdf/templates/rdf-metadata.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for empty spans with RDF attributes.
- *
- * The XHTML+RDFa doctype allows either <span></span> or <span /> syntax to
- * be used, but for maximum browser compatibility, W3C recommends the
- * former when serving pages using the text/html media type, see
- * http://www.w3.org/TR/xhtml1/#C_3.
- *
- * Available variables:
- * - metadata: Each item within corresponds to its own set of attributes,
- * and therefore, needs its own 'attributes' element.
- *
- * @see template_preprocess_rdf_metadata()
- *
- * @ingroup themeable
- */
- #}
- {% for attributes in metadata %}
- <span{{ attributes.addClass('hidden') }}></span>
- {% endfor %}