public function TestOrderItemAdjustment::split in Commerce Migrate 3.0.x
Same name and namespace in other branches
- 8.2 modules/ubercart/tests/src/Unit/Plugin/migrate/process/OrderItemAdjustmentTest.php \Drupal\Tests\ubercart\Unit\Plugin\migrate\process\ubercart\TestOrderItemAdjustment::split()
- 3.1.x modules/ubercart/tests/src/Unit/Plugin/migrate/process/OrderItemAdjustmentTest.php \Drupal\Tests\ubercart\Unit\Plugin\migrate\process\ubercart\TestOrderItemAdjustment::split()
Computes the percentage of a price to apply to this line.
Parameters
string $num_product_line: The current product line number.
bool $last_line: Indicates if this is the last line item for the order.
\Drupal\commerce_price\Price $price: The rounded total price for this sline item.
Return value
\Drupal\commerce_price\Price|null The price to apply to this line of NULL if there was an error.
Overrides OrderItemAdjustment::split
File
- modules/
ubercart/ tests/ src/ Unit/ Plugin/ migrate/ process/ OrderItemAdjustmentTest.php, line 364
Class
- TestOrderItemAdjustment
- Test class for OrderItemDiscountAdjustment.
Namespace
Drupal\Tests\ubercart\Unit\Plugin\migrate\process\ubercartCode
public function split($num_product_line, $last_line, Price $price) {
return parent::split($num_product_line, $last_line, $price);
}