Add name and type to allowed default fields.

This commit is contained in:
Michael Stenta 2021-06-09 08:21:09 -04:00
parent 85efcaf324
commit dbc2245d22
1 changed files with 1 additions and 1 deletions

View File

@ -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);