You are here

commerce-stock-location-content-add-list.html.twig in Commerce Stock 8

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_commerce_stock_location_content_add_list()

File

modules/local_storage/templates/commerce-stock-location-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_commerce_stock_location_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 %}