update-last-check.html.twig

Same filename in this branch
  1. 8.9.x core/themes/stable/templates/admin/update-last-check.html.twig
Same filename in other branches
  1. 9 core/themes/stable9/templates/admin/update-last-check.html.twig
  2. 9 core/themes/stable/templates/admin/update-last-check.html.twig
  3. 9 core/modules/update/templates/update-last-check.html.twig
  4. 10 core/themes/stable9/templates/admin/update-last-check.html.twig
  5. 10 core/modules/update/templates/update-last-check.html.twig
  6. 11.x core/themes/stable9/templates/admin/update-last-check.html.twig
  7. 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
Form constructor.

File

core/modules/update/templates/update-last-check.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the last time update data was checked.
  5. *
  6. * Available variables:
  7. * - last: The timestamp that the site was last checked for updates.
  8. * - time: The formatted time since the site last checked for updates.
  9. * - link: A link to check for updates manually.
  10. *
  11. * @see template_preprocess_update_last_check()
  12. *
  13. * @ingroup themeable
  14. */
  15. #}
  16. <p>
  17. {% if last %}
  18. {{ 'Last checked: @time ago'|t({'@time': time}) }}
  19. {% else %}
  20. {{ 'Last checked: never'|t }}
  21. {% endif %}
  22. ({{ link }})
  23. </p>

Related topics


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.