src/PayloadBuilders/EntryField.php
function addLanguage($languageKey, $content) {
        //If the langage exists and it's an array, add to it instead of replacing it.
        if (is_array($this->getLanguage($languageKey))) {
            $this->languages[$languageKey][] = $content[0];
            return;
        }
        $this->languages[$languageKey] = $content;
        return $this;
    }
function addLanguage($languageKey, $content) {
        //If the langage exists and it's an array, add to it instead of replacing it.
        if (is_array($this->getLanguage($languageKey))) {
            $this->languages[$languageKey][] = $content[0];
            return;
        }
        $this->languages[$languageKey] = $content;
        return $this;
    }
function addLanguage ( $ languageKey , $ content ) { //If the langage exists and it's an array, add to it instead of replacing it. if ( is_array ( $ this -> getLanguage ( $ languageKey ) ) ) { $ this -> languages [ $ languageKey ] [ ] = $ content [ 0 ] ; return ; } $ this -> languages [ $ languageKey ] = $ content ; return $ this ; }
Add a language to the field.
@param $languageKey
@param $content
@return $this
Add a language to the field .