Skip to content
Snippets Groups Projects
Commit b5af114a authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-4929: adding missing event fields to service

parent 27935d98
No related branches found
No related tags found
1 merge request!120ISTWCMS-4929: adding missing event fields to service
......@@ -187,6 +187,12 @@ class UWService implements UWServiceInterface {
'content' => $get_content ? 'field_uw_event_summary' : NULL,
'hero' => $get_image ? 'field_uw_hero_image' : NULL,
'tags' => $get_footer ? $tag_list : NULL,
'host' => $get_footer ? 'field_uw_event_host' : NULL,
'event_website' => $get_footer ? 'field_uw_event_website' : NULL,
'cost' => $get_footer ? 'field_uw_event_cost' : NULL,
'map' => $get_footer ? 'field_uw_event_location_coord' : NULL,
'address' => $get_footer ? 'field_uw_event_location_address' : NULL,
'map_link' => $get_footer ? 'field_uw_event_map' : NULL,
];
break;
......@@ -301,6 +307,10 @@ class UWService implements UWServiceInterface {
}
break;
case 'address':
$node_data['address'] = $node->$data->getValue()[0];
break;
case 'author':
$node_data['author'] = $this->uwGetAuthor($node);
break;
......@@ -327,11 +337,22 @@ class UWService implements UWServiceInterface {
$node_data['image'] = $this->uwGetImage($node, $data);
break;
case 'event_website':
case 'host':
case 'link_profile':
case 'map_link';
case 'personal_webpage':
$node_data[$index] = $this->uwGetLinkInfo($node, $data);
break;
case 'map':
$display = [
'type' => 'leaflet_formatter_default',
'label' => 'visually_hidden',
];
$node_data['map'] = $node->$data->view($display);
break;
case 'sources':
$node_data['image'] = $this->uwGetSources($node, $data);
break;
......
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