GeolocationGpxMapFormatter.php in Geolocation Field 8.3
File
modules/geolocation_gpx/src/Plugin/Field/FieldFormatter/GeolocationGpxMapFormatter.php
View source
<?php
namespace Drupal\geolocation_gpx\Plugin\Field\FieldFormatter;
use Drupal\Core\Form\FormStateInterface;
use Drupal\geolocation\Plugin\Field\FieldFormatter\GeolocationMapFormatterBase;
class GeolocationGpxMapFormatter extends GeolocationMapFormatterBase {
protected static $dataProviderId = 'geolocation_gpx';
public function settingsForm(array $form, FormStateInterface $form_state) {
$element = parent::settingsForm($form, $form_state);
unset($element['set_marker']);
unset($element['title']);
unset($element['info_text']);
unset($element['replacement_patterns']);
return $element;
}
}