class GeocodeOriginAutocomplete in Geocoder 8.3
Same name and namespace in other branches
- 8.2 src/Plugin/GeofieldProximitySource/deprecated/GeocodeOriginAutocomplete.php \Drupal\geocoder\Plugin\GeofieldProximitySource\deprecated\GeocodeOriginAutocomplete
Defines 'Geocode Origin, with Autocomplete' proximity source plugin.
Plugin annotation
@GeofieldProximitySource(
id = "geofield_geocode_origin_autocomplete",
label = @Translation("Geocode Origin, with Autocomplete"),
description = @Translation("Geocodes origin from free text input, with autocomplete."),
exposedDescription = @Translation("Geocode origin from free text input, with autocomplete."),
exposedOnly = true,
context = {},
no_ui = true
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\geofield\Plugin\GeofieldProximitySourceBase implements GeofieldProximitySourceInterface uses StringTranslationTrait
- class \Drupal\geocoder\Plugin\GeofieldProximitySource\GeocodeOrigin implements ContainerFactoryPluginInterface
- class \Drupal\geocoder\Plugin\GeofieldProximitySource\deprecated\GeocodeOriginAutocomplete
- class \Drupal\geocoder\Plugin\GeofieldProximitySource\GeocodeOrigin implements ContainerFactoryPluginInterface
- class \Drupal\geofield\Plugin\GeofieldProximitySourceBase implements GeofieldProximitySourceInterface uses StringTranslationTrait
Expanded class hierarchy of GeocodeOriginAutocomplete
File
- src/
Plugin/ GeofieldProximitySource/ deprecated/ GeocodeOriginAutocomplete.php, line 24
Namespace
Drupal\geocoder\Plugin\GeofieldProximitySource\deprecatedView source
class GeocodeOriginAutocomplete extends GeocodeOrigin {
/**
* Constructs a GeocodeOrigin object.
*
* @param array $configuration
* A configuration array containing information about the plugin instance.
* @param string $plugin_id
* The plugin_id for the plugin instance.
* @param mixed $plugin_definition
* The plugin implementation definition.
* @param \Drupal\geocoder\Geocoder $geocoder
* The Geocoder Service.
* @param \Drupal\geocoder\ProviderPluginManager $providerPluginManager
* The Providers Plugin Manager.
* @param \Drupal\geocoder\FormatterPluginManager $formatterPluginManager
* The Providers Plugin Manager.
*/
public function __construct(array $configuration, $plugin_id, $plugin_definition, Geocoder $geocoder, ProviderPluginManager $providerPluginManager, FormatterPluginManager $formatterPluginManager) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $geocoder, $providerPluginManager, $formatterPluginManager);
$this->useAutocomplete = isset($configuration['use_autocomplete']) ? $configuration['use_autocomplete'] : 1;
}
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($configuration, $plugin_id, $plugin_definition, $container
->get('geocoder'), $container
->get('plugin.manager.geocoder.provider'), $container
->get('plugin.manager.geocoder.formatter'));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GeocodeOrigin:: |
protected | property | The Address Format for autocomplete suggestions. | |
GeocodeOrigin:: |
protected | property | The delay for starting the Geocoder search. | |
GeocodeOrigin:: |
protected | property | The Formatter Plugin Manager. | |
GeocodeOrigin:: |
protected | property | The Geocoder Service. | |
GeocodeOrigin:: |
protected | property | Geocoder Plugins not compatible with Geofield Proximity Geocoding. | |
GeocodeOrigin:: |
protected | property | The (minimum) number of terms for the Geocoder to start processing. | |
GeocodeOrigin:: |
protected | property | Geocoder Control Specific Options. | |
GeocodeOrigin:: |
protected | property | The origin address to geocode and measure proximity from. | |
GeocodeOrigin:: |
protected | property | The Providers Plugin Manager. | |
GeocodeOrigin:: |
protected | property | The flag for Address search autocomplete option. | |
GeocodeOrigin:: |
public | function |
Builds the specific form elements for the geofield proximity plugin. Overrides GeofieldProximitySourceBase:: |
|
GeocodeOrigin:: |
protected | function | Geocode the Origin Address. | |
GeocodeOrigin:: |
public | function | Get the list of enabled Provider plugins. | |
GeocodeOrigin:: |
public | function |
Validates the options form for the geofield proximity plugin. Overrides GeofieldProximitySourceBase:: |
|
GeocodeOrigin:: |
public static | function | ||
GeocodeOriginAutocomplete:: |
public static | function |
Creates an instance of the plugin. Overrides GeocodeOrigin:: |
|
GeocodeOriginAutocomplete:: |
public | function |
Constructs a GeocodeOrigin object. Overrides GeocodeOrigin:: |
|
GeofieldProximitySourceBase:: |
protected | property | The origin point to measure proximity from. | |
GeofieldProximitySourceBase:: |
protected | property | The name of the constant defining the measurement unit. | |
GeofieldProximitySourceBase:: |
protected | property | The view handler which uses this proximity plugin. | |
GeofieldProximitySourceBase:: |
public | function |
Gets the haversine options. Overrides GeofieldProximitySourceInterface:: |
|
GeofieldProximitySourceBase:: |
public | function |
Gets the proximity distance origin. Overrides GeofieldProximitySourceInterface:: |
2 |
GeofieldProximitySourceBase:: |
public | function |
Get the calculated proximity. Overrides GeofieldProximitySourceInterface:: |
|
GeofieldProximitySourceBase:: |
public | function |
Get the current units. Overrides GeofieldProximitySourceInterface:: |
|
GeofieldProximitySourceBase:: |
public | function | Get the list of valid options for units. | |
GeofieldProximitySourceBase:: |
public | function |
Check if Location is empty. Overrides GeofieldProximitySourceInterface:: |
|
GeofieldProximitySourceBase:: |
public | function |
Check for a valid couple of latitude and longitude. Overrides GeofieldProximitySourceInterface:: |
|
GeofieldProximitySourceBase:: |
public | function |
Sets the proximity distance origin. Overrides GeofieldProximitySourceInterface:: |
|
GeofieldProximitySourceBase:: |
public | function |
Set the units to perform the calculation in. Overrides GeofieldProximitySourceInterface:: |
|
GeofieldProximitySourceBase:: |
public | function |
Sets view handler which uses this proximity plugin. Overrides GeofieldProximitySourceInterface:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |