admin-block-content.html.twig in Drupal 10
Same filename in this branch
- 10 core/themes/seven/templates/admin-block-content.html.twig
- 10 core/modules/system/templates/admin-block-content.html.twig
- 10 core/themes/claro/templates/admin/admin-block-content.html.twig
- 10 core/themes/stable9/templates/admin/admin-block-content.html.twig
- 10 core/themes/stable/templates/admin/admin-block-content.html.twig
Same filename and directory in other branches
Theme override for the content of an administrative block.
Available variables:
- content: List of administrative menu items. Each menu item contains:
- link: Link to the admin section.
- title: Short name of the section.
- description: Description of the administrative menu item.
- url: URI to the admin section.
- options: URL options. See \Drupal\Core\Url::fromUri() for details.
- attributes: HTML attributes to be added to the element.
- compact: Boolean indicating whether compact mode is turned on or not.
See also
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/stable/templates/admin/admin-block-content.html.twigView source
- {#
- /**
- * @file
- * Theme override for the content of an administrative block.
- *
- * Available variables:
- * - content: List of administrative menu items. Each menu item contains:
- * - link: Link to the admin section.
- * - title: Short name of the section.
- * - description: Description of the administrative menu item.
- * - url: URI to the admin section.
- * - options: URL options. See \Drupal\Core\Url::fromUri() for details.
- * - 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',
- ]
- %}
- {% if content %}
- <dl{{ attributes.addClass(classes) }}>
- {% for item in content %}
- <dt class="list-group__link">{{ item.link }}</dt>
- {% if item.description %}
- <dd class="list-group__description">{{ item.description }}</dd>
- {% endif %}
- {% endfor %}
- </dl>
- {% endif %}