Gregwar\Formidable\Form::pushLanguage PHP Method

pushLanguage() protected method

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