From 00de5e505e91aa5a31d8e828860ddd37b6e49401 Mon Sep 17 00:00:00 2001 From: webchick <drupal@webchick.net> Date: Mon, 5 Oct 2015 00:33:13 -0700 Subject: [PATCH] Issue #2578567 by Cottser: Remove theme_indentation() and use Twig template only --- core/includes/theme.inc | 18 ------------------ .../system/templates/indentation.html.twig | 6 ------ 2 files changed, 24 deletions(-) diff --git a/core/includes/theme.inc b/core/includes/theme.inc index a7c8166a7506..4140bbc14750 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1096,23 +1096,6 @@ function template_preprocess_item_list(&$variables) { } } -/** - * Returns HTML for an indentation div; used for drag and drop tables. - * - * @param $variables - * An associative array containing: - * - size: Optional. The number of indentations to create. - * - * @ingroup themeable - */ -function theme_indentation($variables) { - $output = ''; - for ($n = 0; $n < $variables['size']; $n++) { - $output .= '<div class="js-indentation indentation"> </div>'; - } - return $output; -} - /** * Prepares variables for container templates. * @@ -1779,7 +1762,6 @@ function drupal_common_theme() { ), 'indentation' => array( 'variables' => array('size' => 1), - 'function' => 'theme_indentation', ), // From theme.maintenance.inc. 'maintenance_page' => array( diff --git a/core/modules/system/templates/indentation.html.twig b/core/modules/system/templates/indentation.html.twig index e07e3c1c15e9..c7067fbe0843 100644 --- a/core/modules/system/templates/indentation.html.twig +++ b/core/modules/system/templates/indentation.html.twig @@ -11,10 +11,4 @@ * @ingroup themeable */ #} -<!-- -THIS FILE IS NOT USED AND IS HERE AS A STARTING POINT FOR CUSTOMIZATION ONLY. -See https://api.drupal.org/api/function/theme_indentation/8 for details. -After copying this file to your theme's folder and customizing it, remove this -HTML comment. ---> {% for i in 1..size if size > 0 %}<div class="js-indentation indentation"> </div>{% endfor %} -- GitLab