public function AddressFieldProvider::isFieldGeoOption in Geolocation Field 8.3
Same name and namespace in other branches
- 8.2 modules/geolocation_address/src/Plugin/geolocation/DataProvider/AddressFieldProvider.php \Drupal\geolocation_address\Plugin\geolocation\DataProvider\AddressFieldProvider::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_address/ src/ Plugin/ geolocation/ DataProvider/ AddressFieldProvider.php, line 136
Class
- AddressFieldProvider
- Provides default address field.
Namespace
Drupal\geolocation_address\Plugin\geolocation\DataProviderCode
public function isFieldGeoOption(FieldDefinitionInterface $fieldDefinition) {
return $fieldDefinition
->getType() == 'address';
}