You are here

public function ThemeSettings::__construct in Drupal 10

Same name in this branch
  1. 10 core/lib/Drupal/Core/Theme/ThemeSettings.php \Drupal\Core\Theme\ThemeSettings::__construct()
  2. 10 core/modules/system/src/Plugin/migrate/destination/d7/ThemeSettings.php \Drupal\system\Plugin\migrate\destination\d7\ThemeSettings::__construct()
Same name and namespace in other branches
  1. 8 core/modules/system/src/Plugin/migrate/destination/d7/ThemeSettings.php \Drupal\system\Plugin\migrate\destination\d7\ThemeSettings::__construct()
  2. 9 core/modules/system/src/Plugin/migrate/destination/d7/ThemeSettings.php \Drupal\system\Plugin\migrate\destination\d7\ThemeSettings::__construct()

Constructs a theme settings destination object.

Parameters

array $configuration: Plugin configuration.

string $plugin_id: The plugin ID.

mixed $plugin_definition: The plugin definition.

\Drupal\migrate\Plugin\MigrationInterface $migration: The current migration.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

Overrides DestinationBase::__construct

File

core/modules/system/src/Plugin/migrate/destination/d7/ThemeSettings.php, line 42

Class

ThemeSettings
Persist theme settings to the config system.

Namespace

Drupal\system\Plugin\migrate\destination\d7

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, ConfigFactoryInterface $config_factory) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $migration);
  $this->configFactory = $config_factory;
}