You are here

class Location in Geolocation Field 8.2

Same name in this branch
  1. 8.2 src/Annotation/Location.php \Drupal\geolocation\Annotation\Location
  2. 8.2 src/Plugin/geolocation/MapCenter/Location.php \Drupal\geolocation\Plugin\geolocation\MapCenter\Location
  3. 8.2 src/Plugin/geolocation/LocationInput/Location.php \Drupal\geolocation\Plugin\geolocation\LocationInput\Location
Same name and namespace in other branches
  1. 8.3 src/Annotation/Location.php \Drupal\geolocation\Annotation\Location

Defines a Location annotation object.

Hierarchy

Expanded class hierarchy of Location

See also

\Drupal\geolocation\LocationManager

Plugin API

6 string references to 'Location'
views.view.geolocation_demo_commonmap_boundary_filter_with_ajax.yml in modules/geolocation_google_maps/modules/geolocation_google_maps_demo/config/optional/views.view.geolocation_demo_commonmap_boundary_filter_with_ajax.yml
modules/geolocation_google_maps/modules/geolocation_google_maps_demo/config/optional/views.view.geolocation_demo_commonmap_boundary_filter_with_ajax.yml
views.view.geolocation_demo_commonmap_with_attachment.yml in modules/geolocation_google_maps/modules/geolocation_google_maps_demo/config/optional/views.view.geolocation_demo_commonmap_with_attachment.yml
modules/geolocation_google_maps/modules/geolocation_google_maps_demo/config/optional/views.view.geolocation_demo_commonmap_with_attachment.yml
views.view.geolocation_demo_commonmap_with_marker_icons.yml in modules/geolocation_google_maps/modules/geolocation_google_maps_demo/config/optional/views.view.geolocation_demo_commonmap_with_marker_icons.yml
modules/geolocation_google_maps/modules/geolocation_google_maps_demo/config/optional/views.view.geolocation_demo_commonmap_with_marker_icons.yml
views.view.geolocation_demo_common_map_ajax.yml in modules/geolocation_google_maps/modules/geolocation_google_maps_demo/config/optional/views.view.geolocation_demo_common_map_ajax.yml
modules/geolocation_google_maps/modules/geolocation_google_maps_demo/config/optional/views.view.geolocation_demo_common_map_ajax.yml
views.view.geolocation_demo_interactive_commonmap_with_address_input.yml in modules/geolocation_google_maps/modules/geolocation_google_maps_demo/config/optional/views.view.geolocation_demo_interactive_commonmap_with_address_input.yml
modules/geolocation_google_maps/modules/geolocation_google_maps_demo/config/optional/views.view.geolocation_demo_interactive_commonmap_with_address_input.yml

... See full list

7 classes are annotated with Location
FirstRow in src/Plugin/geolocation/Location/FirstRow.php
Derive center from first row.
FixedCoordinates in src/Plugin/geolocation/Location/FixedCoordinates.php
Fixed coordinates map center.
FreeGeoIp in src/Plugin/geolocation/Location/FreeGeoIp.php
Fixed coordinates map center.
ViewsBoundaryArgument in src/Plugin/geolocation/Location/ViewsBoundaryArgument.php
Derive center from proximity argument.
ViewsEntityArgument in src/Plugin/geolocation/Location/ViewsEntityArgument.php
Derive center from proximity argument.

... See full list

File

src/Annotation/Location.php, line 15

Namespace

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

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

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
Location::$description public property The description of the Location.
Location::$id public property The plugin ID.
Location::$name public property The name of the Location.
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