You are here

public function Locale::__construct in Price 8

Same name and namespace in other branches
  1. 3.x src/Locale.php \Drupal\price\Locale::__construct()
  2. 2.0.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($locale_code) {
  $this->localeCode = $locale_code;
}