public function Payment::setLineItems in Payment 8.2
Sets line items.
Parameters
\Drupal\payment\Plugin\Payment\LineItem\PaymentLineItemInterface[] $line_items:
Return value
static
Overrides LineItemCollectionInterface::setLineItems
File
- src/
Entity/ Payment.php, line 140
Class
- Payment
- Defines a payment entity.
Namespace
Drupal\payment\EntityCode
public function setLineItems(array $line_items) {
foreach ($line_items as $line_item) {
$this
->setLineItem($line_item);
}
return $this;
}