You are here

public function LineItemCollection::getLineItems in Payment 8.2

Gets all line items.

Return value

\Drupal\payment\Plugin\Payment\LineItem\PaymentLineItemInterface[]

Overrides LineItemCollectionInterface::getLineItems

3 calls to LineItemCollection::getLineItems()
LineItemCollection::getAmount in src/LineItemCollection.php
Gets the line items' total amount.
LineItemCollection::getLineItem in src/LineItemCollection.php
Gets a line item.
LineItemCollection::getLineItemsByType in src/LineItemCollection.php
Gets line items by plugin type.

File

src/LineItemCollection.php, line 89

Class

LineItemCollection
Provides a line item collection.

Namespace

Drupal\payment

Code

public function getLineItems() {
  return $this->lineItems;
}