started projet viewmode full page

This commit is contained in:
2026-08-15 18:58:29 +02:00
parent d3799fb3b3
commit 9f9a2501ee
12 changed files with 4439 additions and 33 deletions
+2
View File
@@ -82,6 +82,8 @@ function leshed_preprocess_node(&$variables) {
}
$variables["attributes"]['class'][] = "node-type-{$node_type}";
$variables["attributes"]['class'][] = "view-mode-{$variables['view_mode']}";
if ($variables['view_mode'] === "teaser") {
/** @var \Drupal\file\Plugin\\Field\FieldType\FileFieldItemList $field_images */
$field_images = $node->get('field_images');