fetchCustomvars(); if (array_key_exists("geolocation", $service->customvars)) { $nav->addItem(new NavigationItem(t('Show on map'), array( 'url' => Url::fromPath('map/', array('showHost' => $service->host_name . "!" . $service->getName())), 'target' => '_next', 'icon' => 'globe', ))); } return $nav; } }