public function Geofield::isFieldGeoOption in Geolocation Field 8.3
Same name and namespace in other branches
- 8.2 modules/geolocation_geofield/src/Plugin/geolocation/DataProvider/Geofield.php \Drupal\geolocation_geofield\Plugin\geolocation\DataProvider\Geofield::isFieldGeoOption()
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_geofield/ src/ Plugin/ geolocation/ DataProvider/ Geofield.php, line 48
Class
- Geofield
- Provides Google Maps.
Namespace
Drupal\geolocation_geofield\Plugin\geolocation\DataProviderCode
public function isFieldGeoOption(FieldDefinitionInterface $fieldDefinition) {
return $fieldDefinition
->getType() == 'geofield';
}