Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

block-content-add-list.html.twig

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

See also

template_preprocess_block_content_add_list()

1 theme call to block-content-add-list.html.twig
BlockContentController::add in core/modules/block_content/src/Controller/BlockContentController.php
Displays add content block links for available types.

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. #}
  15. <dl>
  16. {% for type in types %}
  17. <dt>{{ type.link }}</dt>
  18. <dd>{{ type.description }}</dd>
  19. {% endfor %}
  20. </dl>

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal