Neos\Flow\I18n\Locale::__toString PHP Méthode

__toString() public méthode

Returns the string identifier of this locale
public __toString ( ) : string
Résultat string The locale identifier (tag)
    public function __toString()
    {
        $localeIdentifier = $this->language;
        if ($this->script !== null) {
            $localeIdentifier .= '_' . $this->script;
        }
        if ($this->region !== null) {
            $localeIdentifier .= '_' . $this->region;
        }
        if ($this->variant !== null) {
            $localeIdentifier .= '_' . $this->variant;
        }
        return $localeIdentifier;
    }