private function getTranslations($string, $params)
    {
        $out = [];
        $messages = $this->translationsHelper->getTranslations($string, $params);
        foreach ($messages as $message) {
            $out[$message['Lang']] = $message['Text'];
        }

        return $out;
    }
private function getTranslations($string, $params)
    {
        $out = [];
        $messages = $this->translationsHelper->getTranslations($string, $params);
        foreach ($messages as $message) {
            $out[$message['Lang']] = $message['Text'];
        }

        return $out;
    }
private function getTranslations ( $ string , $ params ) { $ out = [ ] ; $ messages = $ this -> translationsHelper -> getTranslations ( $ string , $ params ) ; foreach ( $ messages as $ message ) { $ out [ $ message [ 'Lang' ] ] = $ message [ 'Text' ] ; } return $ out ; }
Generates the needed data structure
@param $string
@param $params
@return array
Generates the needed data structure