protected static function Config::defaults in Openlayers 7.3
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\openlayersCode
protected static function defaults($key = NULL) {
$defaults = array(
'openlayers.js_css.group' => 'openlayers',
'openlayers.js_css.weight' => 20,
'openlayers.js_css.media' => 'screen',
'openlayers.edit_view_map' => 'openlayers_map_view_edit_form',
'openlayers.variant' => 'local:3.11.2',
'openlayers.debug' => 0,
);
if ($key == NULL) {
return $defaults;
}
return isset($defaults[$key]) ? $defaults[$key] : NULL;
}