Added Entity and Entity Reference Revisions which got dropped somewhere along the...
[yaffs-website] / web / core / themes / seven / templates / admin-block-content.html.twig
1 {#
2 /**
3  * @file
4  * Seven's theme implementation for the content of an administrative block.
5  *
6  * Uses unordered list markup in both compact and extended modes.
7  *
8  * Available variables:
9  * - content: List of administrative menu items. Each menu item contains:
10  *   - url: Path to the admin section.
11  *   - title: Short name of the section.
12  *   - description: Description of the administrative menu item.
13  * - attributes: HTML attributes to be added to the element.
14  * - compact: Boolean indicating whether compact mode is turned on or not.
15  *
16  * @see template_preprocess_admin_block_content()
17  * @see seven_preprocess_admin_block_content()
18  */
19 #}
20 {%
21   set classes = [
22     'admin-list',
23     compact ? 'compact',
24   ]
25 %}
26 {% if content %}
27   <ul{{ attributes.addClass(classes) }}>
28     {% for item in content %}
29       <li><a href="{{ item.url }}"><span class="label">{{ item.title }}</span><div class="description">{{ item.description }}</div></a></li>
30     {% endfor %}
31   </ul>
32 {% endif %}