You are here

indentation.html.twig in Drupal 10

Default theme implementation for a set of indentation divs.

These <div> tags are used for drag and drop tables.

Available variables:

  • size: Optional. The number of indentations to create.

File

core/modules/system/templates/indentation.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a set of indentation divs.
  5. *
  6. * These <div> tags are used for drag and drop tables.
  7. *
  8. * Available variables:
  9. * - size: Optional. The number of indentations to create.
  10. *
  11. * @ingroup themeable
  12. */
  13. #}
  14. {% if size > 0 %}{% for i in 1..size %}<div class="js-indentation indentation">&nbsp;</div>{% endfor %}{% endif %}

Related topics