You are here

public function Config::get in Backup and Migrate 5.0.x

Get a setting value.

Parameters

string $key: The key for the setting.

mixed $default: The default to return if the value does not exist.

Return value

mixed The value of the setting.

Overrides ConfigInterface::get

File

src/Core/Config/Config.php, line 40

Class

Config
A basic configuration manager with very little logic in it.

Namespace

Drupal\backup_migrate\Core\Config

Code

public function get($key, $default = NULL) {
  return $this
    ->keyIsSet($key) ? $this->config[$key] : $default;
}