public function ConfigurableTrait::__construct in Backup and Migrate 5.0.x
Parameters
ConfigInterface|array $init: The initial values for the configurable item.
1 call to ConfigurableTrait::__construct()
- DrupalSiteArchiveSource::__construct in src/
Drupal/ Source/ DrupalSiteArchiveSource.php
2 methods override ConfigurableTrait::__construct()
- DrupalSiteArchiveSource::__construct in src/
Drupal/ Source/ DrupalSiteArchiveSource.php - PluginManager::__construct in src/
Core/ Plugin/ PluginManager.php
File
- src/
Core/ Config/ ConfigurableTrait.php, line 38
Class
- ConfigurableTrait
- A configurable object. Manages injection and access to a config object.
Namespace
Drupal\backup_migrate\Core\ConfigCode
public function __construct($init = []) {
if (is_array($init)) {
$init = new Config($init);
}
$this->init = $init;
// Set the config to a blank object to populate all values with the initial
// and default values.
$this
->setConfig(new Config());
}