protected function Amount::getAmount in Currency 8.3
Gets this field's amount.
If the amount cannot be fetched from your implementation's database field as a numeric string, you should override this method so it returns a numeric/decimal representation of the amount.
Parameters
\Drupal\views\ResultRow $values: A values object as received by $this->render().
Return value
string A numeric string.
1 call to Amount::getAmount()
- Amount::render in src/
Plugin/ views/ field/ Amount.php - Renders the field.
File
- src/
Plugin/ views/ field/ Amount.php, line 189
Class
- Amount
- A Views field handler for currency amounts.
Namespace
Drupal\currency\Plugin\views\fieldCode
protected function getAmount(ResultRow $values) {
return $this
->getValue($values);
}