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/stable9/templates/admin/block-content-add-list.html.twig
  2. 11.1.x core/modules/block_content/templates/block-content-add-list.html.twig

Claro's theme implementation to display a list of content 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 content block type.

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

See also

template_preprocess_block_content_add_list()

claro_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/claro/templates/block-content-add-list.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Claro's theme implementation to display a list of content 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. * claro_preprocess_block_content_add_list().
  12. * - description: A description of this content 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 claro_preprocess_block_content_add_list()
  18. */
  19. #}
  20. {% extends '@claro/entity-add-list.html.twig' %}

API Navigation

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