You are here

public function LineItemCollectionInterface::getLineItem in Payment 8.2

Gets a line item.

Parameters

string $name: The line item's machine name.

Return value

\Drupal\payment\Plugin\Payment\LineItem\PaymentLineItemInterface

2 methods override LineItemCollectionInterface::getLineItem()
LineItemCollection::getLineItem in src/LineItemCollection.php
Gets a line item.
Payment::getLineItem in src/Entity/Payment.php
Gets a line item.

File

src/LineItemCollectionInterface.php, line 71

Class

LineItemCollectionInterface
Defines a line item collection.

Namespace

Drupal\payment

Code

public function getLineItem($name);