diff --git a/core/modules/image/image.admin.inc b/core/modules/image/image.admin.inc index e991989..ac0fb9a 100644 --- a/core/modules/image/image.admin.inc +++ b/core/modules/image/image.admin.inc @@ -6,6 +6,7 @@ */ use Drupal\Component\Utility\String; +use Drupal\Core\Render\Element; /** * Returns HTML for a listing of the effects within a specific image style. @@ -20,7 +21,7 @@ function theme_image_style_effects($variables) { $form = $variables['form']; $rows = array(); - foreach (element_children($form) as $key) { + foreach (Element::children($form) as $key) { $row = array(); $form[$key]['weight']['#attributes']['class'] = array('image-effect-order-weight'); if ($key != 'new') { @@ -170,7 +171,7 @@ function template_preprocess_image_anchor(&$variables) { $rows = array(); $row = array(); - foreach (element_children($element) as $n => $key) { + foreach (Element::children($element) as $n => $key) { $element[$key]['#attributes']['title'] = $element[$key]['#title']; unset($element[$key]['#title']); $row[] = array(