You are here

public function GeolocationGpx::isFieldGeoOption in Geolocation Field 8.3

Determine valid field geo option.

Parameters

\Drupal\Core\Field\FieldDefinitionInterface $fieldDefinition: Field definition.

Return value

bool Yes or no.

Overrides DataProviderInterface::isFieldGeoOption

File

modules/geolocation_gpx/src/Plugin/geolocation/DataProvider/GeolocationGpx.php, line 239

Class

GeolocationGpx
Provides GPX.

Namespace

Drupal\geolocation_gpx\Plugin\geolocation\DataProvider

Code

public function isFieldGeoOption(FieldDefinitionInterface $fieldDefinition) {
  return $fieldDefinition
    ->getType() == 'geolocation_gpx_file';
}