From dbc2245d22fcb56c69a3e1c0c87708f24b707a06 Mon Sep 17 00:00:00 2001 From: Michael Stenta Date: Wed, 9 Jun 2021 08:21:09 -0400 Subject: [PATCH] Add name and type to allowed default fields. --- modules/ui/map/farm_ui_map.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/map/farm_ui_map.module b/modules/ui/map/farm_ui_map.module index 482f5383..b2e67722 100644 --- a/modules/ui/map/farm_ui_map.module +++ b/modules/ui/map/farm_ui_map.module @@ -60,7 +60,7 @@ function farm_ui_map_asset_view(array &$build, EntityInterface $entity, EntityVi // The default view mode is used if a map_popup view mode is not provided. // Alter the default view mode to only include common fields. if ($display->getMode() === 'default') { - $common_fields = ['flag', 'notes', 'location']; + $common_fields = ['name', 'type', 'flag', 'notes', 'location']; $build = array_filter($build, function ($key) use ($common_fields) { return strpos($key, '#') === 0 || in_array($key, $common_fields); }, ARRAY_FILTER_USE_KEY);