You are here

public function Config::get in Backup and Migrate 8.4

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

lib/backup_migrate_core/src/Config/Config.php, line 44

Class

Config
Class ConfigBase.

Namespace

BackupMigrate\Core\Config

Code

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