You are here

public function LineItemCollectionInterface::getLineItemsByType in Payment 8.2

Gets line items by plugin type.

Parameters

string $plugin_id: The line item plugin's ID.

Return value

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

2 methods override LineItemCollectionInterface::getLineItemsByType()
LineItemCollection::getLineItemsByType in src/LineItemCollection.php
Gets line items by plugin type.
Payment::getLineItemsByType in src/Entity/Payment.php
Gets line items by plugin type.

File

src/LineItemCollectionInterface.php, line 81

Class

LineItemCollectionInterface
Defines a line item collection.

Namespace

Drupal\payment

Code

public function getLineItemsByType($plugin_id);