You are here

public function PluginManager::setConfig in Backup and Migrate 5.0.x

Set the configuration. Reconfigure all of the installed plugins.

Parameters

\Drupal\backup_migrate\Core\Config\ConfigInterface $config:

Overrides ConfigurableTrait::setConfig

1 call to PluginManager::setConfig()
PluginManager::__construct in src/Core/Plugin/PluginManager.php

File

src/Core/Plugin/PluginManager.php, line 55

Class

PluginManager
@package Drupal\backup_migrate\Core\Plugin

Namespace

Drupal\backup_migrate\Core\Plugin

Code

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);
  }
}