You are here

public function Locale::__toString in Price 8

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