You are here

Wkt.php in Geocoder 7.2

The Wkt plugin.

File

src/Plugin/Geocoder/Dumper/Wkt.php
View source
<?php

/**
 * @file
 * The Wkt plugin.
 */
namespace Drupal\geocoder\Plugin\Geocoder\Dumper;

use Drupal\geocoder\Plugin\Geocoder\Dumper;
use Drupal\geocoder\Plugin\Geocoder\DumperInterface;
use Geocoder\Model\Address;

/**
 * Class Wkt.
 *
 * @GeocoderPlugin(
 *  id = "wkt",
 *  name = "WKT",
 *  type = "Dumper"
 * )
 */
class Wkt extends Dumper implements DumperInterface {

  /**
   * @inheritdoc
   */
  public function dump(Address $address) {
    $handler = new \Geocoder\Dumper\Wkt();
    return $handler
      ->dump($address);
  }

}

Classes

Namesort descending Description
Wkt Class Wkt.