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
Claro's 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 claro_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.
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/claro/templates/block-content-add-list.html.twigView source
- {#
- /**
- * @file
- * Claro's 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
- * claro_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 template_preprocess_block_content_add_list()
- * @see claro_preprocess_block_content_add_list()
- */
- #}
- {% extends '@claro/entity-add-list.html.twig' %}