public function getLabels()
    {
        $languages = array_keys(Helpers::getLanguageItems($this->fields));

        if (count($languages) > 0) {
            return $this->getTranslatedLabels($languages);
        }

        return $this->getPlainLabels();
    }
public function getLabels()
    {
        $languages = array_keys(Helpers::getLanguageItems($this->fields));

        if (count($languages) > 0) {
            return $this->getTranslatedLabels($languages);
        }

        return $this->getPlainLabels();
    }
public function getLabels ( ) { $ languages = array_keys ( Helpers :: getLanguageItems ( $ this -> fields ) ) ; if ( count ( $ languages ) > 0 ) { return $ this -> getTranslatedLabels ( $ languages ) ; } return $ this -> getPlainLabels ( ) ; }
Gets translatable labels for the given languages if any,
otherwise, get plain labels

@param array $languages

@return array
Gets translatable labels for the given languages if any otherwise get plain labels