function Configuration::load
Loads the configuration from an array.
Overwrites each configuration key that is already existing.
Parameters
array<string,bool|string|list<string>> $parameters: An array of configuration elements.
File
-
core/
tests/ Drupal/ TestTools/ Extension/ DeprecationBridge/ Configuration.php, line 64
Class
- Configuration
- Configuration for DeprecationHandler.
Namespace
Drupal\TestTools\Extension\DeprecationBridgeCode
public function load(array $parameters) : void {
if (array_key_exists('enableProjectIgnores', $parameters)) {
$this->projectIgnoresEnabled = filter_var($parameters['enableProjectIgnores'] ?? FALSE, \FILTER_VALIDATE_BOOLEAN);
}
if (array_key_exists('projectIgnoreFile', $parameters)) {
$this->projectIgnoreFile = $parameters['projectIgnoreFile'];
}
if (array_key_exists('enableDebugClassLoader', $parameters)) {
$this->debugClassLoaderEnabled = filter_var($parameters['enableDebugClassLoader'] ?? FALSE, \FILTER_VALIDATE_BOOLEAN);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.