block-content-add-list.html.twig
Same filename in this branch
Same filename in other branches
- 9 core/themes/stable9/templates/admin/block-content-add-list.html.twig
- 9 core/themes/seven/templates/block-content-add-list.html.twig
- 9 core/themes/claro/templates/block-content-add-list.html.twig
- 9 core/themes/stable/templates/admin/block-content-add-list.html.twig
- 9 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/claro/templates/block-content-add-list.html.twig
- 10 core/modules/block_content/templates/block-content-add-list.html.twig
- 11.x core/themes/stable9/templates/admin/block-content-add-list.html.twig
- 11.x core/themes/claro/templates/block-content-add-list.html.twig
- 11.x core/modules/block_content/templates/block-content-add-list.html.twig
Seven's theme implementation to display a list of custom block types.
Displays the list of available custom block types for creation.
Available variables:
- types: A collection of all the available custom block types.
Each type contains:
- url: A link to add a block of this type.
- description: A description of this custom block type.
- label: The title of the custom block type.
- path: A path for the link to add a block of this type.
See also
template_preprocess_block_content_add_list()
seven_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 custom block links for available types.
File
-
core/
themes/ seven/ templates/ block-content-add-list.html.twig
View source
- {#
- /**
- * @file
- * Seven's theme implementation to display a list of custom block types.
- *
- * Displays the list of available custom block types for creation.
- *
- * Available variables:
- * - types: A collection of all the available custom block types.
- * Each type contains:
- * - url: A link to add a block of this type.
- * - description: A description of this custom block type.
- * - label: The title of the custom block type.
- * - path: A path for the link to add a block of this type.
- *
- * @see template_preprocess_block_content_add_list()
- * @see seven_preprocess_block_content_add_list()
- */
- #}
- <ul class="admin-list">
- {% for type in types %}
- <li class="clearfix">
- <a href="{{ type.url }}"><span class="label">{{ type.label }}</span><div class="description">{{ type.description }}</div></a>
- </li>
- {% endfor %}
- </ul>
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.