Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / themes / stable / templates / content-edit / entity-add-list.html.twig
1 {#
2 /**
3  * @file
4  * Default theme implementation to present a list of available bundles.
5  *
6  * Available variables:
7  *   - bundles: A list of bundles, each with the following properties:
8  *     - label: Bundle label.
9  *     - description: Bundle description.
10  *     - add_link: Link to create an entity of this bundle.
11  *   - add_bundle_message: The message shown when there are no bundles. Only
12  *                         available if the entity type uses bundle entities.
13  *
14  * @see template_preprocess_entity_add_list()
15  *
16  * @ingroup themeable
17  */
18 #}
19 {% if bundles is not empty %}
20   <dl>
21     {% for bundle in bundles %}
22       <dt>{{ bundle.add_link }}</dt>
23       <dd>{{ bundle.description }}</dd>
24     {% endfor %}
25   </dl>
26 {% elseif add_bundle_message is not empty %}
27   <p>
28     {{ add_bundle_message }}
29   </p>
30 {% endif %}