Form.php
protected function pushLanguage()
    {
        $language = $this->factory->getLanguage();

        if ($language && $this->parserData) {
            $fields = $this->parserData->getFields();
            foreach ($fields as &$field) {
                $field->setLanguage($this->factory->getLanguage());
            }
        }
    }
protected function pushLanguage()
    {
        $language = $this->factory->getLanguage();

        if ($language && $this->parserData) {
            $fields = $this->parserData->getFields();
            foreach ($fields as &$field) {
                $field->setLanguage($this->factory->getLanguage());
            }
        }
    }
protected function pushLanguage ( ) { $ language = $ this -> factory -> getLanguage ( ) ; if ( $ language && $ this -> parserData ) { $ fields = $ this -> parserData -> getFields ( ) ; foreach ( $ fields as & $ field ) { $ field -> setLanguage ( $ this -> factory -> getLanguage ( ) ) ; } } }
Push the language to all the fields
Push the language to all the fields