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
  3. 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
  16. 11.x core/themes/admin/templates/admin/block-content-add-list.html.twig

Admin theme implementation to display a list of custom block types.

Available variables:

  • bundles: List of blockcontent types, each with the following properties:

    • label: Block content type label
    • add_link: \Drupal\Core\Link link instance to create an entity of this block content type. This is a GeneratedLink originally and is switched by gin_preprocess_block_content_add_list().
    • description: A description of this custom block type.

@todo Revisit after https://www.drupal.org/node/3026221 has been solved.

See also

template_preprocess_block_content_add_list()

gin_preprocess_block_content_add_list()

File

core/themes/admin/templates/admin/block-content-add-list.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Admin theme implementation to display a list of custom block types.
  5. *
  6. * Available variables:
  7. * - bundles: List of blockcontent types, each with the following properties:
  8. * - label: Block content type label
  9. * - add_link: \Drupal\Core\Link link instance to create an entity of this
  10. * block content type. This is a GeneratedLink originally and is switched by
  11. * gin_preprocess_block_content_add_list().
  12. * - description: A description of this custom block type.
  13. *
  14. * @todo Revisit after https://www.drupal.org/node/3026221 has been solved.
  15. *
  16. * @see template_preprocess_block_content_add_list()
  17. * @see gin_preprocess_block_content_add_list()
  18. */
  19. #}
  20. {% extends '@admin/admin/entity-add-list.html.twig' %}

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