You are here

GeocoderCountryFormattingBase.php in Geolocation Field 8.2

Same filename and directory in other branches
  1. 8.3 src/GeocoderCountryFormattingBase.php

Namespace

Drupal\geolocation

File

src/GeocoderCountryFormattingBase.php
View source
<?php

namespace Drupal\geolocation;

use Drupal\Core\Plugin\PluginBase;

/**
 * Defines an interface for geolocation google geocoder country  plugins.
 */
abstract class GeocoderCountryFormattingBase extends PluginBase implements GeocoderCountryFormattingInterface {

  /**
   * {@inheritdoc}
   */
  public function format(array $atomics) {
    $address_elements = [
      'organization' => '',
      'addressLine1' => '',
      'addressLine2' => '',
      'locality' => '',
      'postalCode' => '',
      'administrativeArea' => '',
      'countryCode' => '',
    ];
    return $address_elements;
  }

}

Classes

Namesort descending Description
GeocoderCountryFormattingBase Defines an interface for geolocation google geocoder country plugins.