public function getKeywords(array $languageCodes)
    {
        $keywords = [];

        foreach ($languageCodes as $languageCode) {
            if (isset($this->keywords[$languageCode])) {
                $keywords[$languageCode] = $this->keywords[$languageCode];
            }
        }

        if (empty($keywords)) {
            return [
                $this->mainLanguageCode => $this->getKeyword($this->mainLanguageCode),
            ];
        }

        return $keywords;
    }
public function getKeywords(array $languageCodes)
    {
        $keywords = [];

        foreach ($languageCodes as $languageCode) {
            if (isset($this->keywords[$languageCode])) {
                $keywords[$languageCode] = $this->keywords[$languageCode];
            }
        }

        if (empty($keywords)) {
            return [
                $this->mainLanguageCode => $this->getKeyword($this->mainLanguageCode),
            ];
        }

        return $keywords;
    }
public function getKeywords ( array $ languageCodes ) { $ keywords = [ ] ; foreach ( $ languageCodes as $ languageCode ) { if ( isset ( $ this -> keywords [ $ languageCode ] ) ) { $ keywords [ $ languageCode ] = $ this -> keywords [ $ languageCode ] ; } } if ( empty ( $ keywords ) ) { return [ $ this -> mainLanguageCode => $ this -> getKeyword ( $ this -> mainLanguageCode ) , ] ; } return $ keywords ; }
Returns tag translations sorted and filtered by provided list of language codes.

@param array $languageCodes

@return array
Returns tag translations sorted and filtered by provided list of language codes .