Same filename in this branch
  1. 10 core/modules/system/templates/indentation.html.twig
  2. 10 core/themes/claro/templates/admin/indentation.html.twig
  3. 10 core/themes/stable9/templates/admin/indentation.html.twig
Same filename and directory in other branches
  1. 8.9.x core/modules/system/templates/indentation.html.twig
  2. 9 core/modules/system/templates/indentation.html.twig

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.
5 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.
TableDragTestForm::buildTestTable in core/modules/system/tests/modules/tabledrag_test/src/Form/TableDragTestForm.php
Builds the draggable test table.
WorkspaceListBuilder::buildRow in core/modules/workspaces/src/WorkspaceListBuilder.php
Builds a row for an entity in the entity listing.

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