You are here

public function Geofield::isFieldGeoOption in Geolocation Field 8.2

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

Code

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