Skip to content
Snippets Groups Projects
Commit afdff8f9 authored by catch's avatar catch
Browse files

Issue #3171570 by kostyashupenko, mherchel: Remove Olivero's custom...

Issue #3171570 by kostyashupenko, mherchel: Remove Olivero's custom hard-coding of the image style within article content type's full view mode
parent 4aa86df9
No related branches found
No related tags found
No related merge requests found
......@@ -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.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment