block-content-add-list.html.twig 847 B

1234567891011121314151617181920212223242526
  1. {#
  2. /**
  3. * @file
  4. * Theme implementation to display a list of custom block types.
  5. *
  6. * Displays the list of available custom block types for creation.
  7. *
  8. * Available variables:
  9. * - types: A collection of all the available custom block types.
  10. * Each type contains:
  11. * - url: A link to add a block of this type.
  12. * - description: A description of this custom block type.
  13. * - label: The title of the custom block type.
  14. * - path: A path for the link to add a block of this type.
  15. *
  16. * @see template_preprocess_block_content_add_list()
  17. * @see mediteran_preprocess_block_content_add_list()
  18. */
  19. #}
  20. <ul class="admin-list">
  21. {% for type in types %}
  22. <li class="clearfix">
  23. <a href="{{ type.url }}"><span class="label">{{ type.label }}</span><div class="description">{{ type.description }}</div></a>
  24. </li>
  25. {% endfor %}
  26. </ul>