public function Config::__construct in Zircon Profile 8
Same name in this branch
- 8 core/lib/Drupal/Core/Config/Config.php \Drupal\Core\Config\Config::__construct()
- 8 core/modules/migrate/src/Plugin/migrate/destination/Config.php \Drupal\migrate\Plugin\migrate\destination\Config::__construct()
Same name and namespace in other branches
- 8.0 core/modules/migrate/src/Plugin/migrate/destination/Config.php \Drupal\migrate\Plugin\migrate\destination\Config::__construct()
Constructs a Config destination object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin ID for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\migrate\Entity\MigrationInterface $migration: The migration entity.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.
Overrides DestinationBase::__construct
File
- core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ Config.php, line 54 - Contains \Drupal\migrate\Plugin\migrate\destination\Config.
Class
- Config
- Persist data to the config system.
Namespace
Drupal\migrate\Plugin\migrate\destinationCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, ConfigFactoryInterface $config_factory) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $migration);
$this->config = $config_factory
->getEditable($configuration['config_name']);
}