update-version.html.twig
Same filename in this branch
Same filename in other branches
- 9 core/themes/stable9/templates/admin/update-version.html.twig
- 9 core/themes/claro/templates/admin/update-version.html.twig
- 9 core/themes/stable/templates/admin/update-version.html.twig
- 9 core/modules/update/templates/update-version.html.twig
- 8.9.x core/themes/claro/templates/admin/update-version.html.twig
- 8.9.x core/themes/stable/templates/admin/update-version.html.twig
- 8.9.x core/modules/update/templates/update-version.html.twig
- 11.x core/themes/stable9/templates/admin/update-version.html.twig
- 11.x core/themes/claro/templates/admin/update-version.html.twig
- 11.x core/modules/update/templates/update-version.html.twig
Theme override for the version display of a project.
Available variables:
- attributes: HTML attributes suitable for a container element.
- title: The title of the project.
- core_compatibility_details: Render array of core compatibility details.
- version: A list of data about the latest released version, containing:
- version: The version number.
- date: The date of the release.
- download_link: The URL for the downloadable file.
- release_link: The URL for the release notes.
- core_compatible: A flag indicating whether the project is compatible with the currently installed version of Drupal core. This flag is not set for the Drupal core project itself.
- core_compatibility_message: A message indicating the versions of Drupal core with which this project is compatible. This message is also contained within the 'core_compatibility_details' variable documented above. This message is not set for the Drupal core project itself.
See also
template_preprocess_update_version()
1 theme call to update-version.html.twig
- template_preprocess_update_project_status in core/
modules/ update/ update.report.inc - Prepares variables for update project status templates.
File
-
core/
themes/ stable9/ templates/ admin/ update-version.html.twig
View source
- {#
- /**
- * @file
- * Theme override for the version display of a project.
- *
- * Available variables:
- * - attributes: HTML attributes suitable for a container element.
- * - title: The title of the project.
- * - core_compatibility_details: Render array of core compatibility details.
- * - version: A list of data about the latest released version, containing:
- * - version: The version number.
- * - date: The date of the release.
- * - download_link: The URL for the downloadable file.
- * - release_link: The URL for the release notes.
- * - core_compatible: A flag indicating whether the project is compatible
- * with the currently installed version of Drupal core. This flag is not
- * set for the Drupal core project itself.
- * - core_compatibility_message: A message indicating the versions of Drupal
- * core with which this project is compatible. This message is also
- * contained within the 'core_compatibility_details' variable documented
- * above. This message is not set for the Drupal core project itself.
- *
- * @see template_preprocess_update_version()
- */
- #}
- <div class="{{ attributes.class }} project-update__version"{{ attributes|without('class') }}>
- <div class="clearfix">
- <div class="project-update__version-title layout-column layout-column--quarter">{{ title }}</div>
- <div class="project-update__version-details layout-column layout-column--quarter">
- <a href="{{ version.release_link }}">{{ version.version }}</a>
- <span class="project-update__version-date">({{ version.date|date('Y-M-d') }})</span>
- </div>
- <div class="layout-column layout-column--half">
- <ul class="project-update__version-links">
- {% if version.core_compatible is not defined or version.core_compatible %}
- <li class="project-update__download-link">
- <a href="{{ version.download_link }}">{{ 'Download'|t }}</a>
- </li>
- {% endif %}
- <li class="project-update__release-notes-link">
- <a href="{{ version.release_link }}">{{ 'Release notes'|t }}</a>
- </li>
- {% if core_compatibility_details %}
- <li class="project-update__compatibility-details">
- {{ core_compatibility_details }}
- </li>
- {% endif %}
- </ul>
- </div>
- </div>
- </div>
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.