material_admin-8.x-1.0-alpha7/templates/admin/admin-block-content.html.twig
templates/admin/admin-block-content.html.twig
{#
/**
* @file
* Theme override for the content of an administrative block.
*
* Available variables:
* - content: A list containing information about the block. Each element
* of the array represents an administrative menu item, and must at least
* contain the keys 'title', 'link_path', and 'localized_options', which are
* passed to l(). A 'description' key may also be provided.
* - attributes: HTML attributes to be added to the element.
* - compact: Boolean indicating whether compact mode is turned on or not.
*
* @see template_preprocess_admin_block_content()
*/
#}
{%
set classes = [
'list-group',
compact ? 'compact',
'collection',
]
%}
{% if content %}
<div{{ attributes.addClass(classes) }}>
{% for item in content %}
<a class="list-group__link collection-item row" href="{{item.url}}">
<span class="collection-item-title col s12">{{ item.title }}</span>
{% if item.description %}
<span class="list-group__description collection-item-description col s12">{{ item.description }}</span>
{% endif %}
</a>
{% endfor %}
</div>
{% endif %}
