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 .= '
'; - if (!empty($block['title'])) { - $output .= '

' . $block['title'] . '

'; - } - if (!empty($block['content'])) { - $output .= '
' . $block['content'] . '
'; - } - else { - $output .= '
' . $block['description'] . '
'; - } - $output .= '
'; - - return $output; -} - -/** - * Returns HTML for the content of an administrative block. + * Default template: admin-block-content.html.twig. * * @param $variables * An associative array containing: @@ -422,29 +387,29 @@ function theme_admin_block($variables) { * * @ingroup themeable */ -function theme_admin_block_content($variables) { - $content = $variables['content']; - $output = ''; - - if (!empty($content)) { - $class = 'admin-list'; - if ($compact = system_admin_compact_mode()) { - $class .= ' compact'; +function template_preprocess_admin_block_content(&$variables) { + if (!empty($variables['content'])) { + $compact = system_admin_compact_mode(); + $variables['attributes'] = array('class' => array('admin-list')); + if ($compact) { + $variables['attributes']['class'][] = 'compact'; } - $output .= '
'; - foreach ($content as $item) { - $output .= '
' . l($item['title'], $item['href'], $item['localized_options']) . '
'; + foreach ($variables['content'] as $key => $item) { + $variables['content'][$key]['link'] = l($item['title'], $item['href'], $item['localized_options']); if (!$compact && isset($item['description'])) { - $output .= '
' . filter_xss_admin($item['description']) . '
'; + $variables['content'][$key]['description'] = filter_xss_admin($item['description']); + } + else { + $variables['content'][$key]['description'] = FALSE; } } - $output .= '
'; } - return $output; } /** - * Returns HTML for an administrative page. + * Prepares variables for administrative index page templates. + * + * Default template: admin-page.html.twig. * * @param $variables * An associative array containing: @@ -455,39 +420,34 @@ function theme_admin_block_content($variables) { * * @ingroup themeable */ -function theme_admin_page($variables) { - $blocks = $variables['blocks']; - +function template_preprocess_admin_page(&$variables) { + $variables['system_compact_link'] = array( + '#theme' => 'system_compact_link', + ); + $variables['containers'] = array(); $stripe = 0; - $container = array(); - - foreach ($blocks as $block) { - if ($block_output = theme('admin_block', array('block' => $block))) { + foreach ($variables['blocks'] as $Block) { + $block = (array) $Block; + if ($block['show'] = !empty($block['content'])) { if (empty($block['position'])) { // perform automatic striping. $block['position'] = ++$stripe % 2 ? 'left' : 'right'; } - if (!isset($container[$block['position']])) { - $container[$block['position']] = ''; + if (!isset($variables['containers'][$block['position']])) { + $variables['containers'][$block['position']] = array('blocks' => array()); } - $container[$block['position']] .= $block_output; + $variables['containers'][$block['position']]['blocks'][] = array( + '#theme' => 'admin_block', + '#block' => $block, + ); } } - - $output = '
'; - $output .= theme('system_compact_link'); - - foreach ($container as $id => $data) { - $output .= '
'; - $output .= $data; - $output .= '
'; - } - $output .= '
'; - return $output; } /** - * Returns HTML for the output of the admin index page. + * Prepares variables for admin index template. + * + * Default template: system-admin-index.html.twig. * * @param $variables * An associative array containing: @@ -495,60 +455,49 @@ function theme_admin_page($variables) { * * @ingroup themeable */ -function theme_system_admin_index($variables) { - $menu_items = $variables['menu_items']; - +function template_preprocess_system_admin_index(&$variables) { + $variables['system_compact_link'] = array( + '#theme' => 'system_compact_link' + ); + $variables['containers'] = array(); $stripe = 0; - $container = array('left' => '', 'right' => ''); - $flip = array('left' => 'right', 'right' => 'left'); - $position = 'left'; - // Iterate over all modules. - foreach ($menu_items as $module => $block) { + foreach ($variables['menu_items'] as $module => $block) { list($description, $items) = $block; - + $position = ++$stripe % 2 ? 'left' : 'right'; // Output links. if (count($items)) { - $block = array(); - $block['title'] = $module; - $block['content'] = theme('admin_block_content', array('content' => $items)); - $block['description'] = t($description); - $block['show'] = TRUE; - - if ($block_output = theme('admin_block', array('block' => $block))) { - if (!isset($block['position'])) { - // Perform automatic striping. - $block['position'] = $position; - $position = $flip[$position]; - } - $container[$block['position']] .= $block_output; - } + $variables['containers'][$position]['blocks'][] = array( + '#theme' => 'admin_block', + '#block' => array( + 'position' => $position, + 'title' => $module, + 'show' => TRUE, + 'content' => array( + '#theme' => 'admin_block_content', + '#content' => $items, + ), + 'description' => t($description), + ), + ); } } - - $output = '
'; - $output .= theme('system_compact_link'); - foreach ($container as $id => $data) { - $output .= '
'; - $output .= $data; - $output .= '
'; - } - $output .= '
'; - - return $output; } /** - * Returns HTML for the status report. + * Prepares variables for status report template. + * + * Default template: status-report.html.twig. * * @param $variables * An associative array containing: * - requirements: An array of requirements. + * Properties used: severity.title, severity.class, + * requirement.title, requirement.value, requirement.description * * @ingroup themeable */ -function theme_status_report($variables) { - $requirements = $variables['requirements']; +function template_preprocess_status_report(&$variables) { $severities = array( REQUIREMENT_INFO => array( 'title' => t('Info'), @@ -567,11 +516,8 @@ function theme_status_report($variables) { 'class' => 'error', ), ); - $output = ''; - $output .= ''; - $output .= ''; - foreach ($requirements as $requirement) { + foreach ($variables['requirements'] as $i => $requirement) { if (empty($requirement['#type'])) { // Always use the explicit requirement severity, if defined. Otherwise, // default to REQUIREMENT_OK in the installer to visually confirm that @@ -587,22 +533,10 @@ function theme_status_report($variables) { $severity = $severities[REQUIREMENT_INFO]; } - $severity['icon'] = '
' . $severity['title'] . '
'; - - // Output table rows. - $output .= ''; - $output .= ''; - $output .= ''; - $output .= ''; + $variables['requirements'][$i]['severity_class'] = $severity['class']; + $variables['requirements'][$i]['severity_title'] = $severity['title']; } } - - $output .= '
' . t('Status') . '' . t('Component') . '' . t('Details') . '
' . $severity['icon'] . '' . $requirement['title'] . '' . $requirement['value']; - if (!empty($requirement['description'])) { - $output .= '
' . $requirement['description'] . '
'; - } - $output .= '
'; - return $output; } /** @@ -681,19 +615,6 @@ function theme_system_modules_details($variables) { } /** - * Returns HTML for a message about incompatible modules. - * - * @param $variables - * An associative array containing: - * - message: The form array representing the currently disabled modules. - * - * @ingroup themeable - */ -function theme_system_modules_incompatible($variables) { - return '
' . $variables['message'] . '
'; -} - -/** * Returns HTML for a table of currently disabled modules. * * @param $variables @@ -743,7 +664,9 @@ function theme_system_modules_uninstall($variables) { } /** - * Returns HTML for the Appearance page. + * Prepares variables for the appearance page template. + * + * Default template: system-themes-page.html.twig. * * @param $variables * An associative array containing: @@ -751,10 +674,10 @@ function theme_system_modules_uninstall($variables) { * * @ingroup themeable */ -function theme_system_themes_page($variables) { +function template_preprocess_system_themes_page(&$variables) { + $groups = array(); $theme_groups = $variables['theme_groups']; - - $output = '
'; + $variables['attributes']['id'] = 'system-themes-page'; foreach ($variables['theme_group_titles'] as $state => $title) { if (!count($theme_groups[$state])) { @@ -762,67 +685,71 @@ function theme_system_themes_page($variables) { continue; } // Start new theme group. - $output .= '

'. $title .'

'; + $theme_group = array(); + $theme_group['state'] = $state; + $theme_group['title'] = $title; + $theme_group['themes'] = array(); + $theme_group['attributes'] = new Attribute(array('class' => array('system-themes-list', 'system-themes-list-' . $state, 'clearfix'))); + foreach ($theme_groups[$state] as $theme) { + $current_theme = array(); - // Theme the screenshot. + // Screenshot depicting the theme. if ($theme->screenshot) { - $image = array( + $current_theme['screenshot'] = array( '#theme' => 'image', '#uri' => $theme->screenshot['uri'], '#alt' => $theme->screenshot['alt'], '#title' => $theme->screenshot['title'], '#attributes' => $theme->screenshot['attributes'], ); - $screenshot = drupal_render($image); } else { - $screenshot = '
' . t('no screenshot') . '
'; + $current_theme['screenshot'] = '
' . t('no screenshot') . '
'; } // Localize the theme description. - $description = t($theme->info['description']); + $current_theme['description'] = t($theme->info['description']); // Style theme info - $notes = count($theme->notes) ? ' (' . join(', ', $theme->notes) . ')' : ''; $theme->classes[] = 'theme-selector'; $theme->classes[] = 'clearfix'; - $output .= '
' . $screenshot . '

' . $theme->info['name'] . ' ' . (isset($theme->info['version']) ? $theme->info['version'] : '') . $notes . '

' . $description . '
'; + $current_theme['attributes'] = new Attribute(array('class' => $theme->classes)); + $current_theme['name'] = $theme->info['name']; + $current_theme['version'] = isset($theme->info['version']) ? $theme->info['version'] : ''; + $current_theme['notes'] = count($theme->notes) ? '(' . join(', ', $theme->notes) . ')' : ''; // Make sure to provide feedback on compatibility. if (!empty($theme->incompatible_core)) { - $output .= '
' . t('This version is not compatible with Drupal !core_version and should be replaced.', array('!core_version' => DRUPAL_CORE_COMPATIBILITY)) . '
'; + $current_theme['compatibility'] = t('This version is not compatible with Drupal !core_version and should be replaced.', array('!core_version' => DRUPAL_CORE_COMPATIBILITY)); } elseif (!empty($theme->incompatible_php)) { if (substr_count($theme->info['php'], '.') < 2) { $theme->info['php'] .= '.*'; } - $output .= '
' . t('This theme requires PHP version @php_required and is incompatible with PHP version !php_version.', array('@php_required' => $theme->info['php'], '!php_version' => phpversion())) . '
'; + $current_theme['compatibility'] = t('This theme requires PHP version @php_required and is incompatible with PHP version !php_version.', array('@php_required' => $theme->info['php'], '!php_version' => phpversion())); } elseif (!empty($theme->incompatible_base)) { - $output .= '
' . t('This theme requires the base theme @base_theme to operate correctly.', array('@base_theme' => $theme->info['base theme'])) . '
'; + $current_theme['compatibility'] = t('This theme requires the base theme @base_theme to operate correctly.', array('@base_theme' => $theme->info['base theme'])); } elseif (!empty($theme->incompatible_engine)) { - $output .= '
' . t('This theme requires the theme engine @theme_engine to operate correctly.', array('@theme_engine' => $theme->info['engine'])) . '
'; + $current_theme['compatibility'] = t('This theme requires the theme engine @theme_engine to operate correctly.', array('@theme_engine' => $theme->info['engine'])); } else { - $links = array( + $current_theme['compatibility'] = array( '#theme' => 'links', '#links' => $theme->operations, - '#attributes' => array( - 'class' => array('operations', 'clearfix'), - ), + '#attributes' => array('class' => array('operations', 'clearfix')), ); - $output .= drupal_render($links); } - $output .= '
'; + $theme_group['themes'][] = $current_theme; } - $output .= '
'; + $groups[] = $theme_group; } - $output .= '
'; + $variables['theme_groups'] = $groups; + $variables['admin_form'] = drupal_get_form('system_themes_admin_form', $variables['admin_theme_options']); - return $output; } /** diff --git a/core/modules/system/system.api.php b/core/modules/system/system.api.php index 2b362a0..f3fd55c 100644 --- a/core/modules/system/system.api.php +++ b/core/modules/system/system.api.php @@ -1683,7 +1683,6 @@ function hook_theme_registry_alter(&$theme_registry) { * An associative array of default template variables, as set up by * _template_preprocess_default_variables(). Passed by reference. * - * @see template_preprocess() * @see _template_preprocess_default_variables() */ function hook_template_preprocess_default_variables_alter(&$variables) { diff --git a/core/modules/system/system.module b/core/modules/system/system.module index 4a7cdf4..41120be 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -140,8 +140,13 @@ function system_help($path, $arg) { function system_theme() { return array_merge(drupal_common_theme(), array( 'system_themes_page' => array( - 'variables' => array('theme_groups' => NULL), + 'variables' => array( + 'theme_groups' => array(), + 'theme_group_titles' => array(), + 'admin_theme_options' => array(), + ), 'file' => 'system.admin.inc', + 'template' => 'system-themes-page', ), 'system_config_form' => array( 'render element' => 'form', @@ -153,10 +158,6 @@ function system_theme() { 'render element' => 'form', 'file' => 'system.admin.inc', ), - 'system_modules_incompatible' => array( - 'variables' => array('message' => NULL), - 'file' => 'system.admin.inc', - ), 'system_modules_uninstall' => array( 'render element' => 'form', 'file' => 'system.admin.inc', @@ -164,35 +165,42 @@ function system_theme() { 'status_report' => array( 'variables' => array('requirements' => NULL), 'file' => 'system.admin.inc', + 'template' => 'status-report' ), 'admin_page' => array( 'variables' => array('blocks' => NULL), 'file' => 'system.admin.inc', + 'template' => 'admin-page', ), 'admin_block' => array( 'variables' => array('block' => NULL), 'file' => 'system.admin.inc', + 'template' => 'admin-block', ), 'admin_block_content' => array( 'variables' => array('content' => NULL), 'file' => 'system.admin.inc', + 'template' => 'admin-block-content', ), 'system_admin_index' => array( 'variables' => array('menu_items' => NULL), 'file' => 'system.admin.inc', + 'template' => 'system-admin-index', ), 'system_powered_by' => array( 'variables' => array(), + 'template' => 'system-powered-by', ), 'system_compact_link' => array( 'variables' => array(), + 'template' => 'system-compact-link', ), 'system_date_format_localize_form' => array( 'render element' => 'form', ), 'system_plugin_ui_form' => array( - 'template' => 'system-plugin-ui-form', 'render element' => 'form', + 'template' => 'system-plugin-ui-form', ), )); } @@ -2434,7 +2442,7 @@ function system_preprocess_block(&$variables) { * @param array $variables * An associative array containing: * - form: The plugin form elements. -*/ + */ function template_preprocess_system_plugin_ui_form(&$variables) { drupal_add_css(drupal_get_path('module', 'system') . '/css/system.plugin.ui.css'); } @@ -3245,30 +3253,36 @@ function system_time_zones($blank = NULL) { } /** - * Returns HTML for the Powered by Drupal text. - * - * @ingroup themeable + * Menu callback; Retrieve a JSON object containing a suggested time zone name. */ -function theme_system_powered_by() { - return '' . t('Powered by Drupal', array('@poweredby' => 'http://drupal.org')) . ''; +function system_timezone($abbreviation = '', $offset = -1, $is_daylight_saving_time = NULL) { + // An abbreviation of "0" passed in the callback arguments should be + // interpreted as the empty string. + $abbreviation = $abbreviation ? $abbreviation : ''; + $timezone = timezone_name_from_abbr($abbreviation, intval($offset), $is_daylight_saving_time); + return new JsonResponse($timezone); } /** - * Returns HTML for a link to show or hide inline help descriptions. + * Prepare variables for system compact link templates. + * + * Default template: system-compact-link.html.twig. * * @ingroup themeable */ -function theme_system_compact_link() { - $output = ''; - - return $output; } /** diff --git a/core/modules/system/templates/admin-block-content.html.twig b/core/modules/system/templates/admin-block-content.html.twig new file mode 100644 index 0000000..d3fbd5a --- /dev/null +++ b/core/modules/system/templates/admin-block-content.html.twig @@ -0,0 +1,28 @@ +{# +/** + * @file + * Default theme implementation for the content of an administrative block. + * + * Available variables: + * - content: A list containing information about the block. Each element + * of the array represents an administrative menu item, and must at least + * contain the keys 'title', 'href', and 'localized_options', which are + * passed to l(). A 'description' key may also be provided. + * - attributes: HTML attributes to be aded to the element. + * - is_compact_mode: It defines if compact mode is used. + * + * @see template_preprocess_admin_block_content() + * + * @ingroup themeable + */ +#} +{% if content %} + + {% for item in content %} +
{{ item.link }}
+ {% if item.description %} +
{{ item.description }}
+ {% endif %} + {% endfor %} + +{% endif %} diff --git a/core/modules/system/templates/admin-block.html.twig b/core/modules/system/templates/admin-block.html.twig new file mode 100644 index 0000000..36c8d43 --- /dev/null +++ b/core/modules/system/templates/admin-block.html.twig @@ -0,0 +1,30 @@ +{# +/** + * @file + * Default theme implementation for an administrative block. + * + * Available variables: + * - block: An array of information about the block, including: + * - show: A boolean flag indicating if the block should be displayed. + * - title: The block title. + * - content: (optional) The content of the block. + * - description: (optional) A description of the block. + * (description should only be output if content is not available). + * + * @see template_preprocess_admin_block() + * + * @ingroup themeable + */ +#} +{% if block.show %} +
+ {% if block.title %} +

{{ block.title }}

+ {% endif %} + {% if block.content %} +
{{ block.content }}
+ {% elseif block.description %} +
{{ block.description }}
+ {% endif %} +
+{% endif %} diff --git a/core/modules/system/templates/admin-page.html.twig b/core/modules/system/templates/admin-page.html.twig new file mode 100644 index 0000000..5a7d9b1 --- /dev/null +++ b/core/modules/system/templates/admin-page.html.twig @@ -0,0 +1,27 @@ +{# +/** + * @file + * Default theme implementation for an administrative page. + * + * Available variables: + * - system_compact_link: Themed link to toggle compact view. + * - containers: An list of administrative blocks keyed by position: left or + * right. Contains: + * - blocks: A list of blocks within a container. + * + * + * @see template_preprocess_admin_page() + * + * @ingroup themeable + */ +#} +
+ {{ system_compact_link }} + {% for position, container in containers %} +
+ {% for block in container.blocks %} + {{ block }} + {% endfor %} +
+ {% endfor %} +
diff --git a/core/modules/system/templates/datetime.html.twig b/core/modules/system/templates/datetime.html.twig index 25ef788..be24df5 100644 --- a/core/modules/system/templates/datetime.html.twig +++ b/core/modules/system/templates/datetime.html.twig @@ -25,5 +25,4 @@ * @see http://www.w3.org/TR/html5-author/the-time-element.html#attr-time-datetime */ #} -{# @todo Revisit once http://drupal.org/node/1825952 is resolved. #} {{ html ? text|raw : text|escape }} diff --git a/core/modules/system/templates/status-report.html.twig b/core/modules/system/templates/status-report.html.twig new file mode 100644 index 0000000..6628b94 --- /dev/null +++ b/core/modules/system/templates/status-report.html.twig @@ -0,0 +1,43 @@ +{# +/** + * Default theme implementation for the status report. + * + * Available variables: + * - requirements: Contains multiple requirement instances. + * Each requirement contains: + * - title: The title of the requirement. + * - value: The requirement's status. + * - description: The requirement's description. + * - severity_title: The title of the severity. + * - severity_class: The html class of the severity. + * + * @see template_preprocess_status_report() + * + * @ingroup themeable + */ +#} + + + + + + + + {% for requirement in requirements %} + + + + + + {% endfor %} + +
{{ 'Status'|t }}{{ 'Component'|t }}{{ 'Details'|t }}
+
+ {{ requirement.severity_title }} +
+
{{ requirement.title }} + {{ requirement.value }} + {% if requirement.description %} +
{{ requirement.description }}
+ {% endif %} +
diff --git a/core/modules/system/templates/system-admin-index.html.twig b/core/modules/system/templates/system-admin-index.html.twig new file mode 100644 index 0000000..9b3282f --- /dev/null +++ b/core/modules/system/templates/system-admin-index.html.twig @@ -0,0 +1,24 @@ +{# +/** + * @file + * Default theme implementation for the admin index page. + * + * Available variables: + * - system_compact_link: Themed link to toggle compact view. + * - container: Container for admin blocks. + * + * @see template_preprocess_system_admin_index() + * + * @ingroup themeable + */ +#} +
+ {{ system_compact_link }} + {% for position, container in containers %} +
+ {% for block in container.blocks %} + {{ block }} + {% endfor %} +
+ {% endfor %} +
diff --git a/core/modules/system/templates/system-compact-link.html.twig b/core/modules/system/templates/system-compact-link.html.twig new file mode 100644 index 0000000..2c021a5 --- /dev/null +++ b/core/modules/system/templates/system-compact-link.html.twig @@ -0,0 +1,12 @@ +{# +/** + * @file + * Default theme implementation for a link to show or hide inline help + * descriptions. + * + * @see template_preprocess_system_compact_link() + * + * @ingroup themeable + */ +#} + diff --git a/core/modules/system/templates/system-powered-by.html.twig b/core/modules/system/templates/system-powered-by.html.twig new file mode 100644 index 0000000..4223684 --- /dev/null +++ b/core/modules/system/templates/system-powered-by.html.twig @@ -0,0 +1,11 @@ +{# +/** + * @file + * Default theme implementation for the Powered by Drupal text. + * + * @see template_preprocess_system_powered_by() + * + * @ingroup themeable + */ +#} +{{ 'Powered by Drupal'|t }} diff --git a/core/modules/system/templates/system-themes-page.html.twig b/core/modules/system/templates/system-themes-page.html.twig new file mode 100644 index 0000000..d931ce2 --- /dev/null +++ b/core/modules/system/templates/system-themes-page.html.twig @@ -0,0 +1,59 @@ +{# +/** + * @file + * Default theme implementation for the Appearance page. + * + * Available variables: + * - attributes: HTML element attributes. + * - theme_groups: A list of theme groups. + * + * Each theme_groups[group] contains a list of theme groups. + * + * Each group in theme_groups[group] contains: + * - attributes: Element attributes specific to this group. + * - title: Title for the theme group. + * - state: State of the theme group. + * - themes: A list of themes within that group. + * + * Each group.themes[theme] contains a a list of themes. + * + * Each theme in group.themes[theme] contains: + * - attributes: Element attributes specific to this theme. + * - screenshot: Render of theme screenshot. + * - description: Description of the theme. + * - name: Name of theme. + * - version: Verions number of theme. + * - notes: Identifies what context this theme is being used. + * eg. (default theme, admin theme) + * - compatibility: Description of any incompatibility issues, + * if the theme is compatible, provides a list of links. + * + * @see template_preprocess_system_themes_page() + * + * @ingroup themeable + */ +#} + + {% for theme_group in theme_groups %} + +

{{ theme_group.title }}

+ {% for theme in theme_group.themes %} + + {% if theme.screenshot %} + {{ theme.screenshot }} + {% else %} +
+
{{ "no screenshot"|t }}
+
+ {% endif %} +
+

{{ theme.name }} {{ theme.version }} {{ theme.notes }}

+
{{ theme.description }}
+ {{ theme.compatibility }} +
+ + {% endfor %} + + {% endfor %} + +{{ admin_form }} diff --git a/core/modules/system/templates/tablesort-indicator.html.twig b/core/modules/system/templates/tablesort-indicator.html.twig deleted file mode 100644 index ffdecda..0000000 --- a/core/modules/system/templates/tablesort-indicator.html.twig +++ /dev/null @@ -1,18 +0,0 @@ -{# -/** - * @file - * Default theme implementation for displaying a tablesort indicator. - * - * Available variables: - * - image: A renderable image element. - * - style: Either 'asc' or 'desc', indicating the sorting direction. - * - uri: URI to ascending or descending image. - * - * @see template_preprocess_tablesort_indicator() - * - * @ingroup themeable - */ -#} -{% spaceless %} - {{ image }} -{% endspaceless %}