update-last-check.html.twig
Same filename in this branch
Same filename in other branches
- 9 core/themes/stable9/templates/admin/update-last-check.html.twig
- 9 core/themes/stable/templates/admin/update-last-check.html.twig
- 9 core/modules/update/templates/update-last-check.html.twig
- 8.9.x core/themes/stable/templates/admin/update-last-check.html.twig
- 8.9.x core/modules/update/templates/update-last-check.html.twig
- 11.x core/themes/stable9/templates/admin/update-last-check.html.twig
- 11.x core/modules/update/templates/update-last-check.html.twig
Default theme implementation for the last time update data was checked.
Available variables:
- last: The timestamp that the site was last checked for updates.
- time: The formatted time since the site last checked for updates.
- link: A link to check for updates manually.
See also
template_preprocess_update_last_check()
2 theme calls to update-last-check.html.twig
- template_preprocess_update_report in core/
modules/ update/ update.report.inc - Prepares variables for project status report templates.
- UpdateManagerUpdate::buildForm in core/
modules/ update/ src/ Form/ UpdateManagerUpdate.php
File
-
core/
modules/ update/ templates/ update-last-check.html.twig
View source
- {#
- /**
- * @file
- * Default theme implementation for the last time update data was checked.
- *
- * Available variables:
- * - last: The timestamp that the site was last checked for updates.
- * - time: The formatted time since the site last checked for updates.
- * - link: A link to check for updates manually.
- *
- * @see template_preprocess_update_last_check()
- *
- * @ingroup themeable
- */
- #}
- <p>
- {% if last %}
- {{ 'Last checked: @time ago'|t({'@time': time}) }}
- {% else %}
- {{ 'Last checked: never'|t }}
- {% endif %}
- ({{ link }})
- </p>
Related topics
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.