public function Payment::getCurrency in Payment 8.2
Gets the line items' currency.
Return value
\Drupal\currency\Entity\CurrencyInterface
Overrides PaymentInterface::getCurrency
File
- src/
Entity/ Payment.php, line 117
Class
- Payment
- Defines a payment entity.
Namespace
Drupal\payment\EntityCode
public function getCurrency() {
return $this
->get('currency')->entity;
}