update-fetch-error-message.html.twig

Same filename in this branch
  1. 9 core/themes/stable9/templates/admin/update-fetch-error-message.html.twig
  2. 9 core/themes/stable/templates/admin/update-fetch-error-message.html.twig
Same filename in other branches
  1. 10 core/themes/stable9/templates/admin/update-fetch-error-message.html.twig
  2. 10 core/modules/update/templates/update-fetch-error-message.html.twig
  3. 11.x core/themes/stable9/templates/admin/update-fetch-error-message.html.twig
  4. 11.x core/modules/update/templates/update-fetch-error-message.html.twig

Default theme implementation for the message when fetching data fails.

Available variables:

  • error_message: A render array containing the appropriate error message.

See also

template_preprocess_update_fetch_error_message()

4 theme calls to update-fetch-error-message.html.twig
UpdateController::updateStatus in core/modules/update/src/Controller/UpdateController.php
Returns a page about the update status of projects.
UpdateManagerUpdate::buildForm in core/modules/update/src/Form/UpdateManagerUpdate.php
Form constructor.
UpdateReportTest::testTemplatePreprocessUpdateFetchErrorMessageNoDblog in core/modules/update/tests/src/Kernel/UpdateReportTest.php
Tests the error message when failing to fetch data without dblog enabled.
UpdateReportTest::testTemplatePreprocessUpdateFetchErrorMessageWithDblog in core/modules/update/tests/src/Kernel/UpdateReportTest.php
Tests the error message when failing to fetch data with dblog enabled.

File

core/modules/update/templates/update-fetch-error-message.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the message when fetching data fails.
  5. *
  6. * Available variables:
  7. * - error_message: A render array containing the appropriate error message.
  8. *
  9. * @see template_preprocess_update_fetch_error_message()
  10. *
  11. * @ingroup themeable
  12. */
  13. #}
  14. {{ error_message }}

Related topics


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