1 config.inc config_is_overridden($config_file, $option)

A shortcut function to check if a value is overridden within a config file.

Parameters

string $config_file: The name of the configuration object to check. The name corresponds to an JSON configuration file. For

config(book.admin) 

, the config object returned will contain the contents of book.admin.json.

string $option: The name of the config option within the file to check. The config option may contain periods to indicate levels within the config file.

Return value

bool: TRUE if the config option is overridden. FALSE otherwise.

See also

Config::isOverridden()

File

core/includes/config.inc, line 94
This is the API for configuration storage.

Code

function config_is_overridden($config_file, $option) {
  return config($config_file)->isOverridden($option);
}