[ '#markup' => t('Failed to fetch security advisory data:'), ], 'items' => [ '#theme' => 'item_list', '#items' => [ 'documentation_link' => t('See Troubleshooting the advisory feed for possible causes and resolutions.', [':url' => 'https://www.drupal.org/docs/updating-drupal/responding-to-critical-security-update-advisories#s-troubleshooting-the-advisory-feed']), ], ], ]; if (\Drupal::moduleHandler()->moduleExists('dblog') && \Drupal::currentUser()->hasPermission('access site reports')) { $options = ['query' => ['type' => ['system']]]; $dblog_url = Url::fromRoute('dblog.overview', [], $options); $variables['error_message']['items']['#items']['dblog'] = t('Check your local system logs for additional error messages.', [':url' => $dblog_url->toString()]); } else { $variables['error_message']['items']['#items']['logs'] = t('Check your local system logs for additional error messages.'); } }