You are here

public function LineItemCollection::unsetLineItem in Payment 8.2

Unsets a line item.

Parameters

string $name: The line item's name.

Return value

static

Overrides LineItemCollectionInterface::unsetLineItem

File

src/LineItemCollection.php, line 80

Class

LineItemCollection
Provides a line item collection.

Namespace

Drupal\payment

Code

public function unsetLineItem($name) {
  unset($this->lineItems[$name]);
  return $this;
}