From afdff8f981dccbde545fb5b12d58f11386789c4d Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Mon, 22 Nov 2021 11:41:37 +0000 Subject: [PATCH] Issue #3171570 by kostyashupenko, mherchel: Remove Olivero's custom hard-coding of the image style within article content type's full view mode --- core/themes/olivero/olivero.theme | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/core/themes/olivero/olivero.theme b/core/themes/olivero/olivero.theme index dafb21e4217b..2032f818892e 100644 --- a/core/themes/olivero/olivero.theme +++ b/core/themes/olivero/olivero.theme @@ -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. */ -- GitLab