function Color::__construct
Same name in this branch
- 8.9.x core/modules/color/src/Plugin/migrate/source/d7/Color.php \Drupal\color\Plugin\migrate\source\d7\Color::__construct()
Same name in other branches
- 9 core/modules/color/src/Plugin/migrate/destination/Color.php \Drupal\color\Plugin\migrate\destination\Color::__construct()
- 9 core/modules/color/src/Plugin/migrate/source/d7/Color.php \Drupal\color\Plugin\migrate\source\d7\Color::__construct()
Constructs a Color 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/ color/ src/ Plugin/ migrate/ destination/ Color.php, line 42
Class
- Color
- Persist color data to the config system.
Namespace
Drupal\color\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->configFactory = $config_factory;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.