block-content-add-list.html.twig

Same filename in this branch
  1. main core/themes/claro/templates/block-content-add-list.html.twig
  2. main core/modules/block_content/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

Theme override to present a list of content 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 content 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/themes/stable9/templates/admin/block-content-add-list.html.twig

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

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