diff --git a/core/modules/system/system.admin.inc b/core/modules/system/system.admin.inc index aa36ba7..ea9b084 100644 --- a/core/modules/system/system.admin.inc +++ b/core/modules/system/system.admin.inc @@ -5,6 +5,7 @@ * Admin page callbacks for the system module. */ +use Drupal\Core\Template\Attribute; use Drupal\system\DateFormatInterface; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Response; @@ -373,45 +374,9 @@ function system_batch_page() { } /** - * Returns HTML for an administrative block for display. + * Prepares variables for administrative content block template. * - * @param $variables - * An associative array containing: - * - block: An array containing information about the block: - * - show: A Boolean whether to output the block. Defaults to FALSE. - * - title: The block's title. - * - content: (optional) Formatted content for the block. - * - description: (optional) Description of the block. Only output if - * 'content' is not set. - * - * @ingroup themeable - */ -function theme_admin_block($variables) { - $block = $variables['block']; - $output = ''; - - // Don't display the block if it has no content to display. - if (empty($block['show'])) { - return $output; - } - - $output .= '
' . t('Status') . ' | ' . t('Component') . ' | ' . t('Details') . ' | '; - $output .= '
---|---|---|
' . $severity['icon'] . ' | '; - $output .= '' . $requirement['title'] . ' | '; - $output .= '' . $requirement['value'];
- if (!empty($requirement['description'])) {
- $output .= ' ' . $requirement['description'] . ' ';
- }
- $output .= ' |
{{ 'Status'|t }} | {{ 'Component'|t }} | {{ 'Details'|t }} | +
---|---|---|
+
+ {{ requirement.severity_title }}
+
+ |
+ {{ requirement.title }} | +
+ {{ requirement.value }}
+ {% if requirement.description %}
+ {{ requirement.description }}
+ {% endif %}
+ |
+