You are here

public function Locale::__toString in Price 2.0.x

Same name and namespace in other branches
  1. 8 src/Locale.php \Drupal\price\Locale::__toString()
  2. 3.x src/Locale.php \Drupal\price\Locale::__toString()
  3. 2.x src/Locale.php \Drupal\price\Locale::__toString()
  4. 3.0.x src/Locale.php \Drupal\price\Locale::__toString()

Gets the string representation of the locale.

Return value

string The string representation of the locale.

File

src/Locale.php, line 43

Class

Locale
Represents a locale.

Namespace

Drupal\price

Code

public function __toString() : string {
  return $this->localeCode;
}