public function GeocoderPlugin::getCacheCid in Geocoder 7.2
Generates a cache ID based on the arguments.
Return value
string The cache ID.
Overrides GeocoderPluginInterface::getCacheCid
4 calls to GeocoderPlugin::getCacheCid()
- Provider::geocode in src/
Plugin/ Geocoder/ Provider.php - Geocode data
- Provider::reverse in src/
Plugin/ Geocoder/ Provider.php - Reverse geocode latitude and longitude.
- Random::geocode in src/
Plugin/ Geocoder/ Provider/ Random.php - Geocode data
- Random::reverse in src/
Plugin/ Geocoder/ Provider/ Random.php - Reverse geocode latitude and longitude.
File
- src/
Plugin/ GeocoderPlugin.php, line 77 - Contains \Drupal\geocoder\Plugin\GeocoderPlugin.
Class
Namespace
Drupal\geocoder\PluginCode
public function getCacheCid() {
$args = func_get_args();
$args[] = $this
->getPluginId();
$args[] = $this
->getConfiguration();
return sha1(serialize(array_filter($args)));
}