You are here

public function AddressFieldProvider::isFieldGeoOption in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 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\DataProvider

Code

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