You are here

public function GeocoderFieldPluginManager::getFieldTypes in Geocoder 8.3

Returns the field types that are supported by the Geocoder fields.

Return value

array An associative array of field type IDs, keyed by field type ID.

File

modules/geocoder_field/src/GeocoderFieldPluginManager.php, line 126

Class

GeocoderFieldPluginManager
The Geocoder Field Plugin manager.

Namespace

Drupal\geocoder_field

Code

public function getFieldTypes() : array {
  $field_types = [];
  foreach ($this
    ->getDefinitions() as $definition) {
    foreach ($definition['field_types'] as $field_type) {
      $field_types[$field_type] = $field_type;
    }
  }
  return $field_types;
}