public function Currency::getNumericCode in Price 2.x
Same name and namespace in other branches
- 8 src/Entity/Currency.php \Drupal\price\Entity\Currency::getNumericCode()
- 3.x src/Entity/Currency.php \Drupal\price\Entity\Currency::getNumericCode()
- 2.0.x src/Entity/Currency.php \Drupal\price\Entity\Currency::getNumericCode()
- 3.0.x src/Entity/Currency.php \Drupal\price\Entity\Currency::getNumericCode()
Gets the numeric currency code.
The numeric code has three digits, and the first one can be a zero, hence the need to pass it around as a string.
Return value
string The numeric currency code.
Overrides CurrencyInterface::getNumericCode
File
- src/
Entity/ Currency.php, line 133
Class
- Currency
- Defines the currency entity class.
Namespace
Drupal\price\EntityCode
public function getNumericCode() {
return $this->numericCode;
}