diff --git a/src/Service/UWService.php b/src/Service/UWService.php index 37cb5efb4bf05e7f31440190535a81a83a021ce8..0f8e6abe35aa7636a9f53c7d675e1efa0df434c9 100644 --- a/src/Service/UWService.php +++ b/src/Service/UWService.php @@ -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;