You are here

public function OrderItemDiscountAdjustment::__construct in Commerce Migrate 3.1.x

Same name and namespace in other branches
  1. 8.2 modules/commerce/src/Plugin/migrate/process/commerce1/OrderItemDiscountAdjustment.php \Drupal\commerce_migrate_commerce\Plugin\migrate\process\commerce1\OrderItemDiscountAdjustment::__construct()
  2. 3.0.x modules/commerce/src/Plugin/migrate/process/commerce1/OrderItemDiscountAdjustment.php \Drupal\commerce_migrate_commerce\Plugin\migrate\process\commerce1\OrderItemDiscountAdjustment::__construct()

Constructs a MigrationLookup 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\Plugin\MigrationInterface $migration: The Migration the plugin is being used in.

\Drupal\migrate\Plugin\MigrationPluginManagerInterface $migration_plugin_manager: The Migration Plugin Manager Interface.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\commerce_price\RounderInterface $rounder: The rounder.

Overrides PluginBase::__construct

File

modules/commerce/src/Plugin/migrate/process/commerce1/OrderItemDiscountAdjustment.php, line 85

Class

OrderItemDiscountAdjustment
Builds an array of adjustment data.

Namespace

Drupal\commerce_migrate_commerce\Plugin\migrate\process\commerce1

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, MigrationPluginManagerInterface $migration_plugin_manager, EntityTypeManagerInterface $entity_type_manager, RounderInterface $rounder) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->migrationPluginManager = $migration_plugin_manager;
  $this->migration = $migration;
  $this->entityTypeManager = $entity_type_manager;
  $this->rounder = $rounder;
}