public function CurrencyLocale::setLocale in Currency 8.3
Sets the locale.
Parameters
string $language_code:
string $country_code:
Return value
\Drupal\currency\Entity\CurrencyLocaleInterface
Overrides CurrencyLocaleInterface::setLocale
See also
self::id()
File
- src/
Entity/ CurrencyLocale.php, line 130
Class
- CurrencyLocale
- Defines a currency locale entity.
Namespace
Drupal\currency\EntityCode
public function setLocale($language_code, $country_code) {
$this->locale = strtolower($language_code) . '_' . strtoupper($country_code);
return $this;
}