You are here

simple-mega-menu-content-add-list.html.twig in Simple Mega Menu 2.0.x

Same filename and directory in other branches
  1. 8 templates/simple-mega-menu-content-add-list.html.twig

Default theme implementation to present a list of custom content entity types/bundles.

Available variables:

  • types: A collection of all the available custom entity types/bundles. Each type/bundle contains the following:

    • link: A link to add a content entity of this type.
    • description: A description of this content entity types/bundle.

See also

template_preprocess_simple_mega_menu_content_add_list()

File

templates/simple-mega-menu-content-add-list.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to present a list of custom content entity types/bundles.
  5. *
  6. * Available variables:
  7. * - types: A collection of all the available custom entity types/bundles.
  8. * Each type/bundle contains the following:
  9. * - link: A link to add a content entity of this type.
  10. * - description: A description of this content entity types/bundle.
  11. *
  12. * @see template_preprocess_simple_mega_menu_content_add_list()
  13. *
  14. * @ingroup themeable
  15. */
  16. #}
  17. {% spaceless %}
  18. <dl>
  19. {% for type in types %}
  20. <dt>{{ type.link }}</dt>
  21. {% endfor %}
  22. </dl>
  23. {% endspaceless %}