You are here

public function GeolocationFieldProvider::isViewsGeoOption in Geolocation Field 8.3

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

Determine valid views option.

Parameters

\Drupal\views\Plugin\views\field\FieldPluginBase $views_field: Views field definition.

Return value

bool Yes or no.

Overrides DataProviderBase::isViewsGeoOption

File

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

Class

GeolocationFieldProvider
Provides default geolocation field.

Namespace

Drupal\geolocation\Plugin\geolocation\DataProvider

Code

public function isViewsGeoOption(FieldPluginBase $views_field) {
  return $views_field
    ->getPluginId() == 'geolocation_field';
}