You are here

protected static function Config::defaults in Geocoder 7.2

Get default configuration.

Parameters

string $key: Key to get. If not provided, returns the full array.

Return value

array|null Returns the array or if a key is provided, it's value.

1 call to Config::defaults()
Config::get in src/Config.php
Fetches a configuration value.

File

src/Config.php, line 23
Class Config.

Class

Config
Class Config.

Namespace

Drupal\geocoder

Code

protected static function defaults($key = NULL) {
  $defaults = array(
    'geocoder.cache' => TRUE,
  );
  if ($key == NULL) {
    return $defaults;
  }
  return isset($defaults[$key]) ? $defaults[$key] : NULL;
}