public function TestOrderItemDiscountAdjustment::getAdjustment in Commerce Migrate 8.2
Same name and namespace in other branches
- 3.1.x modules/commerce/tests/src/Unit/Plugin/migrate/process/commerce1/OrderItemDiscountAdjustmentTest.php \Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1\TestOrderItemDiscountAdjustment::getAdjustment()
- 3.0.x modules/commerce/tests/src/Unit/Plugin/migrate/process/commerce1/OrderItemDiscountAdjustmentTest.php \Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1\TestOrderItemDiscountAdjustment::getAdjustment()
Get the adjustments on this order item.
Parameters
mixed $value: The value to be transformed.
\Drupal\migrate\MigrateExecutableInterface $migrate_executable: The migration in which this process is being executed.
\Drupal\migrate\Row $row: The row from the source to process. Normally, just transforming the value is adequate but very rarely you might need to change two columns at the same time or something like that.
Return value
array An array of adjustment data.
Throws
\Drupal\migrate\MigrateSkipRowException
Overrides OrderItemDiscountAdjustment::getAdjustment
File
- modules/
commerce/ tests/ src/ Unit/ Plugin/ migrate/ process/ commerce1/ OrderItemDiscountAdjustmentTest.php, line 472
Class
- TestOrderItemDiscountAdjustment
- Test class for OrderItemDiscountAdjustment.
Namespace
Drupal\Tests\commerce_migrate_commerce\Unit\Plugin\migrate\process\commerce1Code
public function getAdjustment($value, $executable, Row $row) {
return parent::getAdjustment($value, $executable, $row);
}