You are here

block-content-add-list.html.twig in Drupal 10

Theme override to present a list of custom block types.

Available variables:

  • types: A collection of all the available custom block types. Each block type contains the following:

    • link: A link to add a block of this type.
    • description: A description of this custom block type.

File

core/themes/stable/templates/admin/block-content-add-list.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override to present a list of custom block types.
  5. *
  6. * Available variables:
  7. * - types: A collection of all the available custom block types.
  8. * Each block type contains the following:
  9. * - link: A link to add a block of this type.
  10. * - description: A description of this custom block type.
  11. *
  12. * @see template_preprocess_block_content_add_list()
  13. */
  14. #}
  15. {% apply spaceless %}
  16. <dl>
  17. {% for type in types %}
  18. <dt>{{ type.link }}</dt>
  19. <dd>{{ type.description }}</dd>
  20. {% endfor %}
  21. </dl>
  22. {% endapply %}