You are here

public function Locale::__construct in Price 2.0.x

Same name and namespace in other branches
  1. 8 src/Locale.php \Drupal\price\Locale::__construct()
  2. 3.x src/Locale.php \Drupal\price\Locale::__construct()
  3. 2.x src/Locale.php \Drupal\price\Locale::__construct()
  4. 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\price

Code

public function __construct(string $locale_code) {
  $this->localeCode = $locale_code;
}