You are here

class Geocoder in Geolocation Field 8

Same name and namespace in other branches
  1. 8.3 src/Annotation/Geocoder.php \Drupal\geolocation\Annotation\Geocoder
  2. 8.2 src/Annotation/Geocoder.php \Drupal\geolocation\Annotation\Geocoder

Defines a geocoder annotation object.

Hierarchy

Expanded class hierarchy of Geocoder

See also

\Drupal\geolocation\GeocoderManager

Plugin API

3 classes are annotated with Geocoder
Dummy in tests/modules/geolocation_dummy_geocoder/src/Plugin/geolocation/Geocoder/Dummy.php
Provides the Google Geocoding API.
GoogleGeocodingAPI in src/Plugin/geolocation/Geocoder/GoogleGeocodingAPI.php
Provides the Google Geocoding API.
GooglePlacesAPI in modules/geolocation_google_places_api/src/Plugin/geolocation/Geocoder/GooglePlacesAPI.php
Provides the Google Places API.

File

src/Annotation/Geocoder.php, line 15

Namespace

Drupal\geolocation\Annotation
View source
class Geocoder extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The name of the geocoder.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $name;

  /**
   * The description of the geocoder.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $description;

  /**
   * The name of the geocoder.
   *
   * @var bool
   */
  public $locationCapable;

  /**
   * The name of the geocoder.
   *
   * @var bool
   */
  public $boundaryCapable;

}

Members

Namesort descending Modifiers Type Description Overrides
Geocoder::$boundaryCapable public property The name of the geocoder.
Geocoder::$description public property The description of the geocoder.
Geocoder::$id public property The plugin ID.
Geocoder::$locationCapable public property The name of the geocoder.
Geocoder::$name public property The name of the geocoder.
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2