Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit aff051a8 authored by escuriola's avatar escuriola
Browse files

OEL-1159: Remove clause.

parent cdb8a596
No related branches found
No related tags found
4 merge requests!121OEL-1421: Fix cosmetic changes.,!116OEL-1394: Merge 1.x into EPIC-1293-Project, align with new version of card:search pattern,!115Upate the EPIC-1293-project,!112OEL-1159: Adapt starter content entities to card last changes.
......@@ -76,10 +76,6 @@ function _oe_whitelabel_starter_event_preprocess_featured_media(array &$variable
}
$thumbnail = $media->get('thumbnail')->first();
if ($thumbnail === NULL) {
$cacheability->applyTo($variables);
return;
}
$variables['image'] = ImageValueObject::fromImageItem($thumbnail);
$cacheability->applyTo($variables);
......
......@@ -66,10 +66,6 @@ function oe_whitelabel_starter_news_preprocess_node__oe_sc_news(&$variables) {
}
$thumbnail = $media->get('thumbnail')->first();
if ($thumbnail === NULL) {
$cacheability->applyTo($variables);
return;
}
$variables['image'] = ImageValueObject::fromImageItem($thumbnail);
$cacheability->applyTo($variables);
......
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