annotate core/modules/system/templates/entity-add-list.html.twig @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1 {#
Chris@0 2 /**
Chris@0 3 * @file
Chris@0 4 * Default theme implementation to present a list of available bundles.
Chris@0 5 *
Chris@0 6 * Available variables:
Chris@0 7 * - bundles: A list of bundles, each with the following properties:
Chris@0 8 * - label: Bundle label.
Chris@0 9 * - description: Bundle description.
Chris@0 10 * - add_link: Link to create an entity of this bundle.
Chris@0 11 * - add_bundle_message: The message shown when there are no bundles. Only
Chris@0 12 * available if the entity type uses bundle entities.
Chris@0 13 *
Chris@0 14 * @see template_preprocess_entity_add_list()
Chris@0 15 *
Chris@0 16 * @ingroup themeable
Chris@0 17 */
Chris@0 18 #}
Chris@0 19 {% if bundles is not empty %}
Chris@0 20 <dl>
Chris@0 21 {% for bundle in bundles %}
Chris@0 22 <dt>{{ bundle.add_link }}</dt>
Chris@0 23 <dd>{{ bundle.description }}</dd>
Chris@0 24 {% endfor %}
Chris@0 25 </dl>
Chris@0 26 {% elseif add_bundle_message is not empty %}
Chris@0 27 <p>
Chris@0 28 {{ add_bundle_message }}
Chris@0 29 </p>
Chris@0 30 {% endif %}