Merge branch 'master' of https://figureslibres.io/gogs/bachir/drupal-reha
This commit is contained in:
@@ -18,7 +18,7 @@ dependencies:
|
||||
- node.type.site
|
||||
module:
|
||||
- address
|
||||
- image_delta_formatter
|
||||
- image_field_caption
|
||||
- user
|
||||
id: node.site.home_block
|
||||
targetEntityType: node
|
||||
@@ -41,15 +41,13 @@ content:
|
||||
weight: 3
|
||||
region: content
|
||||
field_image:
|
||||
type: image_delta_formatter
|
||||
type: image_caption
|
||||
label: visually_hidden
|
||||
settings:
|
||||
deltas: '0'
|
||||
image_style: wide
|
||||
image_link: content
|
||||
image_loading:
|
||||
attribute: lazy
|
||||
deltas_reversed: 0
|
||||
third_party_settings: { }
|
||||
weight: 0
|
||||
region: content
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user