public function locale(string $locale) : self
    {
        if ($this->validate and ! $locale) {
            throw new Exception("Open Graph: Invalid locale (none set)");
        }

        $this->forget('locale');

        $this->tags[] = $this->createTag('locale', $locale);

        return $this;
    }
public function locale(string $locale) : self
    {
        if ($this->validate and ! $locale) {
            throw new Exception("Open Graph: Invalid locale (none set)");
        }

        $this->forget('locale');

        $this->tags[] = $this->createTag('locale', $locale);

        return $this;
    }
public function locale ( string $ locale ) : self { if ( $ this -> validate and ! $ locale ) { throw new Exception ( "Open Graph: Invalid locale (none set)" ) ; } $ this -> forget ( 'locale' ) ; $ this -> tags [ ] = $ this -> createTag ( 'locale' , $ locale ) ; return $ this ; }
Adds a locale tag

@param  string $locale
@return OpenGraph
Adds a locale tag