indentation.html.twig

Same filename in this branch
  1. 10 core/themes/stable9/templates/admin/indentation.html.twig
  2. 10 core/modules/system/templates/indentation.html.twig
Same filename in other branches
  1. 9 core/themes/stable9/templates/admin/indentation.html.twig
  2. 9 core/themes/claro/templates/admin/indentation.html.twig
  3. 9 core/themes/stable/templates/admin/indentation.html.twig
  4. 9 core/modules/system/templates/indentation.html.twig
  5. 8.9.x core/themes/claro/templates/admin/indentation.html.twig
  6. 8.9.x core/themes/stable/templates/admin/indentation.html.twig
  7. 8.9.x core/modules/system/templates/indentation.html.twig
  8. 11.x core/themes/stable9/templates/admin/indentation.html.twig
  9. 11.x core/themes/claro/templates/admin/indentation.html.twig
  10. 11.x core/modules/system/templates/indentation.html.twig

Theme override 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.
6 theme calls to indentation.html.twig
BookAdminEditForm::bookAdminTableTree in core/modules/book/src/Form/BookAdminEditForm.php
Helps build the main table in the book administration page form.
FieldUiTable::tablePreRender in core/modules/field_ui/src/Element/FieldUiTable.php
Performs pre-render tasks on field_ui_table elements.
MenuForm::buildOverviewForm in core/modules/menu_ui/src/MenuForm.php
Form constructor to edit an entire menu tree at once.
OverviewTerms::buildForm in core/modules/taxonomy/src/Form/OverviewTerms.php
Form constructor.
TableDragTestForm::buildTestTable in core/modules/system/tests/modules/tabledrag_test/src/Form/TableDragTestForm.php
Builds the draggable test table.

... See full list

File

core/themes/claro/templates/admin/indentation.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override 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. #}
  12. {% if size > 0 %}{% for i in 1..size %}<div class="js-indentation indentation">
  13. <svg
  14. xmlns="http://www.w3.org/2000/svg"
  15. class="tree"
  16. width="25"
  17. height="25"
  18. viewBox="0 0 25 25">
  19. <path
  20. class="tree__item tree__item-child-ltr tree__item-child-last-ltr tree__item-horizontal tree__item-horizontal-right"
  21. d="M12,12.5 H25"
  22. stroke="#888"/>
  23. <path
  24. class="tree__item tree__item-child-rtl tree__item-child-last-rtl tree__item-horizontal tree__horizontal-left"
  25. d="M0,12.5 H13"
  26. stroke="#888"/>
  27. <path
  28. class="tree__item tree__item-child-ltr tree__item-child-rtl tree__item-child-last-ltr tree__item-child-last-rtl tree__vertical tree__vertical-top"
  29. d="M12.5,12 v-99"
  30. stroke="#888"/>
  31. <path
  32. class="tree__item tree__item-child-ltr tree__item-child-rtl tree__vertical tree__vertical-bottom"
  33. d="M12.5,12 v99"
  34. stroke="#888"/>
  35. </svg>
  36. </div>{% endfor %}{% endif %}

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