block-content-add-list.html.twig

Same filename in this branch
  1. main core/themes/stable9/templates/admin/block-content-add-list.html.twig
  2. main core/themes/claro/templates/block-content-add-list.html.twig
Same filename and directory in other branches
  1. 10 core/themes/stable9/templates/admin/block-content-add-list.html.twig
  2. 10 core/themes/claro/templates/block-content-add-list.html.twig
  3. 11.x core/themes/stable9/templates/admin/block-content-add-list.html.twig
  4. 11.x core/themes/claro/templates/block-content-add-list.html.twig
  5. 11.x core/modules/block_content/templates/block-content-add-list.html.twig
  6. 10 core/modules/block_content/templates/block-content-add-list.html.twig
  7. 9 core/themes/stable9/templates/admin/block-content-add-list.html.twig
  8. 9 core/themes/seven/templates/block-content-add-list.html.twig
  9. 9 core/themes/claro/templates/block-content-add-list.html.twig
  10. 9 core/themes/stable/templates/admin/block-content-add-list.html.twig
  11. 9 core/modules/block_content/templates/block-content-add-list.html.twig
  12. 8.9.x core/themes/seven/templates/block-content-add-list.html.twig
  13. 8.9.x core/themes/claro/templates/block-content-add-list.html.twig
  14. 8.9.x core/themes/stable/templates/admin/block-content-add-list.html.twig
  15. 8.9.x core/modules/block_content/templates/block-content-add-list.html.twig

Default theme implementation to present a list of block types.

Available variables:

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

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

Deprecated

in drupal:11.3.0 and is removed from drupal:12.0.0. Use entity_add_list instead.

See also

template_preprocess_block_content_add_list()

https://www.drupal.org/node/3530643

File

core/modules/block_content/templates/block-content-add-list.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to present a list of block types.
  5. *
  6. * Available variables:
  7. * - types: A collection of all the available content 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 block type.
  11. *
  12. * @see template_preprocess_block_content_add_list()
  13. *
  14. * @ingroup themeable
  15. *
  16. * @deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. Use entity_add_list instead.
  17. *
  18. * @see https://www.drupal.org/node/3530643
  19. */
  20. #}
  21. <dl>
  22. {% for type in types %}
  23. <dt>{{ type.link }}</dt>
  24. <dd>{{ type.description }}</dd>
  25. {% endfor %}
  26. </dl>

Related topics


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