You are here

public function PaymentLineItemBase::getQuantity in Payment 8.2

Gets the quantity.

Return value

int|float

Overrides PaymentLineItemInterface::getQuantity

2 calls to PaymentLineItemBase::getQuantity()
Basic::buildConfigurationForm in src/Plugin/Payment/LineItem/Basic.php
Form constructor.
PaymentLineItemBase::getTotalAmount in src/Plugin/Payment/LineItem/PaymentLineItemBase.php
Return this line item's total amount.

File

src/Plugin/Payment/LineItem/PaymentLineItemBase.php, line 102

Class

PaymentLineItemBase
Provides a base line item.

Namespace

Drupal\payment\Plugin\Payment\LineItem

Code

public function getQuantity() {
  return $this->configuration['quantity'];
}