protected function GeocoderApiEnpoints::getDumper in Geocoder 8.3
Same name and namespace in other branches
- 8.2 src/Controller/GeocoderApiEnpoints.php \Drupal\geocoder\Controller\GeocoderApiEnpoints::getDumper()
Get the output Dumper Format.
Parameters
string $format: The Dumper Format.
Return value
object|null The Dumper object or Null.
2 calls to GeocoderApiEnpoints::getDumper()
- GeocoderApiEnpoints::geocode in src/
Controller/ GeocoderApiEnpoints.php - GeocoderApiEnpoints::reverseGeocode in src/
Controller/ GeocoderApiEnpoints.php
File
- src/
Controller/ GeocoderApiEnpoints.php, line 180
Class
- GeocoderApiEnpoints
- Class GeocoderApiEnpoints.
Namespace
Drupal\geocoder\ControllerCode
protected function getDumper($format) {
$dumper = NULL;
if (isset($format)) {
try {
$dumper = $this->dumperPluginManager
->createInstance($format);
} catch (\Exception $e) {
$dumper = NULL;
}
}
return $dumper;
}