public function GeolocationGeometry::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_geometry/ src/ Plugin/ geolocation/ DataProvider/ GeolocationGeometry.php, line 350
Class
- GeolocationGeometry
- Provides GPX.
Namespace
Drupal\geolocation_geometry\Plugin\geolocation\DataProviderCode
public function isFieldGeoOption(FieldDefinitionInterface $fieldDefinition) {
return in_array($fieldDefinition
->getType(), [
'geolocation_geometry_geometry',
'geolocation_geometry_geometrycollection',
'geolocation_geometry_point',
'geolocation_geometry_linestring',
'geolocation_geometry_polygon',
'geolocation_geometry_multipoint',
'geolocation_geometry_multilinestring',
'geolocation_geometry_multipolygon',
]);
}