Loading core/themes/olivero/olivero.theme +0 −14 Changes for core/themes/olivero/olivero.theme: 0 added lines, 14 removed lines. Original line number Diff line number Diff line Loading @@ -487,20 +487,6 @@ function olivero_preprocess_field__node__created(&$variables) { } } /** * Implements hook_preprocess_HOOK(). */ function olivero_preprocess_field__node__field_image__article(&$variables) { if ($variables['element']['#view_mode'] == 'full') { $image_style = \Drupal::entityTypeManager()->getStorage('image_style')->load('wide'); if ($image_style) { foreach (Element::children($variables['items']) as $key) { $variables['items'][$key]['content']['#image_style'] = 'wide'; } } } } /** * Implements hook_preprocess_HOOK() for setting classes. */ Loading Loading
core/themes/olivero/olivero.theme +0 −14 Changes for core/themes/olivero/olivero.theme: 0 added lines, 14 removed lines. Original line number Diff line number Diff line Loading @@ -487,20 +487,6 @@ function olivero_preprocess_field__node__created(&$variables) { } } /** * Implements hook_preprocess_HOOK(). */ function olivero_preprocess_field__node__field_image__article(&$variables) { if ($variables['element']['#view_mode'] == 'full') { $image_style = \Drupal::entityTypeManager()->getStorage('image_style')->load('wide'); if ($image_style) { foreach (Element::children($variables['items']) as $key) { $variables['items'][$key]['content']['#image_style'] = 'wide'; } } } } /** * Implements hook_preprocess_HOOK() for setting classes. */ Loading