block-content-add-list.html.twig in Drupal 10
Same filename in this branch
- 10 core/themes/claro/templates/block-content-add-list.html.twig
- 10 core/themes/seven/templates/block-content-add-list.html.twig
- 10 core/modules/block_content/templates/block-content-add-list.html.twig
- 10 core/themes/stable9/templates/admin/block-content-add-list.html.twig
- 10 core/themes/stable/templates/admin/block-content-add-list.html.twig
Same filename and directory in other branches
Theme override to present a list of custom block types.
Available variables:
- types: A collection of all the available custom block types.
Each block type contains the following:
- link: A link to add a block of this type.
- description: A description of this custom block type.
See also
1 theme call to block-content-add-list.html.twig
- BlockContentController::add in core/
modules/ block_content/ src/ Controller/ BlockContentController.php - Displays add custom block links for available types.
File
core/themes/stable9/templates/admin/block-content-add-list.html.twigView source
- {#
- /**
- * @file
- * Theme override to present a list of custom block types.
- *
- * Available variables:
- * - types: A collection of all the available custom block types.
- * Each block type contains the following:
- * - link: A link to add a block of this type.
- * - description: A description of this custom block type.
- *
- * @see template_preprocess_block_content_add_list()
- */
- #}
- {% apply spaceless %}
- <dl>
- {% for type in types %}
- <dt>{{ type.link }}</dt>
- <dd>{{ type.description }}</dd>
- {% endfor %}
- </dl>
- {% endapply %}