Skip to content
Snippets Groups Projects
Commit 2062077d authored by Martin Leblanc's avatar Martin Leblanc
Browse files

Merge branch 'feature/ISTWCMS-5329-ebremner-profile-listing-image' into '1.0.x'

ISTWCMS-5329: adding listing image to profile teaser

See merge request !209
parents 6ee23ee8 c7422bd6
No related branches found
No related tags found
1 merge request!209ISTWCMS-5329: adding listing image to profile teaser
......@@ -557,6 +557,15 @@ class UwNodeContent {
$content_data['header']['position'] = $this->addToContentData('plain_text', 'field_uw_ct_profile_title');
}
// Get listing image.
if ($node_flags['get_image']) {
$content_data['image'] = $this->addToContentData('image', 'field_uw_ct_profile_image');
$content_data['image']['extra_options'] = [
'type' => 'listing_image',
'is_responsive' => TRUE,
];
}
// Setup the actual content.
if ($node_flags['get_content']) {
$content_data['content'] = $this->addToContentData('content', 'field_uw_profile_summary');
......
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