public function PluginManager::setConfig in Backup and Migrate 8.4
Set the configuration. Reconfigure all of the installed plugins.
Parameters
\BackupMigrate\Core\Config\ConfigInterface $config:
Overrides ConfigurableTrait::setConfig
1 call to PluginManager::setConfig()
- PluginManager::__construct in lib/
backup_migrate_core/ src/ Plugin/ PluginManager.php
File
- lib/
backup_migrate_core/ src/ Plugin/ PluginManager.php, line 56
Class
- PluginManager
- Class PluginManager.
Namespace
BackupMigrate\Core\PluginCode
public function setConfig(ConfigInterface $config) {
// Set the configuration object to the one passed in.
$this->config = $config;
// Pass the appropriate configuration to each of the installed plugins.
foreach ($this
->getAll() as $key => $plugin) {
$this
->_configurePlugin($plugin, $key);
}
}