You are here

public function GeolocationFieldProvider::isFieldGeoOption in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/geolocation/DataProvider/GeolocationFieldProvider.php \Drupal\geolocation\Plugin\geolocation\DataProvider\GeolocationFieldProvider::isFieldGeoOption()

Determine valid field geo option.

Parameters

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

Return value

bool Yes or no.

Overrides DataProviderInterface::isFieldGeoOption

File

src/Plugin/geolocation/DataProvider/GeolocationFieldProvider.php, line 112

Class

GeolocationFieldProvider
Provides default geolocation field.

Namespace

Drupal\geolocation\Plugin\geolocation\DataProvider

Code

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