public function Locale::__construct in Price 2.0.x
Same name and namespace in other branches
- 8 src/Locale.php \Drupal\price\Locale::__construct()
- 3.x src/Locale.php \Drupal\price\Locale::__construct()
- 2.x src/Locale.php \Drupal\price\Locale::__construct()
- 3.0.x src/Locale.php \Drupal\price\Locale::__construct()
Constructs a new Locale object.
Parameters
string $locale_code: The locale code.
File
- src/
Locale.php, line 23
Class
- Locale
- Represents a locale.
Namespace
Drupal\priceCode
public function __construct(string $locale_code) {
$this->localeCode = $locale_code;
}