admin-block-content.html.twig in Zircon Profile 8
Same filename in this branch
Same filename and directory in other branches
Seven's theme implementation for the content of an administrative block.
Uses unordered list markup in both compact and extended modes.
Available variables:
- content: List of administrative menu items. Each menu item contains:
- url: Path to the admin section.
- title: Short name of the section.
- description: Description of the administrative menu item.
- attributes: HTML attributes to be added to the element.
- compact: Boolean indicating whether compact mode is turned on or not.
5 theme calls to admin-block-content.html.twig
- EntityDisplayModeController::formModeTypeSelection in core/
modules/ field_ui/ src/ Controller/ EntityDisplayModeController.php - Provides a list of eligible entity types for adding form modes.
- EntityDisplayModeController::viewModeTypeSelection in core/
modules/ field_ui/ src/ Controller/ EntityDisplayModeController.php - Provides a list of eligible entity types for adding view modes.
- SystemController::overview in core/
modules/ system/ src/ Controller/ SystemController.php - Provide the administration overview page.
- SystemManager::getBlockContents in core/
modules/ system/ src/ SystemManager.php - Loads the contents of a menu block.
- template_preprocess_system_admin_index in core/
modules/ system/ system.admin.inc - Prepares variables for admin index templates.
File
core/themes/seven/templates/admin-block-content.html.twigView source
- {#
- /**
- * @file
- * Seven's theme implementation for the content of an administrative block.
- *
- * Uses unordered list markup in both compact and extended modes.
- *
- * Available variables:
- * - content: List of administrative menu items. Each menu item contains:
- * - url: Path to the admin section.
- * - title: Short name of the section.
- * - description: Description of the administrative menu item.
- * - 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()
- * @see seven_preprocess_admin_block_content()
- */
- #}
- {%
- set classes = [
- 'admin-list',
- compact ? 'compact',
- ]
- %}
- {% if content %}
- <ul{{ attributes.addClass(classes) }}>
- {% for item in content %}
- <li><a href="{{ item.url }}"><span class="label">{{ item.title }}</span><div class="description">{{ item.description }}</div></a></li>
- {% endfor %}
- </ul>
- {% endif %}