bach 9 місяців тому
батько
коміт
b3b71af21c
1 змінених файлів з 5 додано та 0 видалено
  1. 5 0
      web/themes/custom/reha/reha.theme

+ 5 - 0
web/themes/custom/reha/reha.theme

@@ -136,4 +136,9 @@ function reha_preprocess_field(&$variables){
       }
     }
   }
+  if($variables['field_name'] === 'field_image'){
+    if($variables['element']['#view_mode'] === 'home_block'){
+      array_splice($variables['items'], 1);
+    }
+  }
 }