You are here

public function Color::__construct in Drupal 8

Same name in this branch
  1. 8 core/modules/color/src/Plugin/migrate/destination/Color.php \Drupal\color\Plugin\migrate\destination\Color::__construct()
  2. 8 core/modules/color/src/Plugin/migrate/source/d7/Color.php \Drupal\color\Plugin\migrate\source\d7\Color::__construct()
Same name and namespace in other branches
  1. 9 core/modules/color/src/Plugin/migrate/destination/Color.php \Drupal\color\Plugin\migrate\destination\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\destination

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