protected function Amount::defaultDefinition in Currency 8.3
Returns default definition values.
Return value
mixed[]
1 call to Amount::defaultDefinition()
- Amount::__construct in src/
Plugin/ views/ field/ Amount.php - Constructs a new instance.
File
- src/
Plugin/ views/ field/ Amount.php, line 79
Class
- Amount
- A Views field handler for currency amounts.
Namespace
Drupal\currency\Plugin\views\fieldCode
protected function defaultDefinition() {
return array(
// A default currency code to use for the amounts.
'currency_code' => 'XXX',
// The name of the database field the currency code is in.
'currency_code_field' => NULL,
// The name of the database table currency_field is in. Defaults to the
// same table this handler is used on.
'currency_code_table' => NULL,
);
}