src/Screen/Builder.php
private function render(Field $field)
    {
        $field->set('lang', $this->language);
        $field->set('prefix', $this->buildPrefix($field));

        foreach ($this->fill($field->getAttributes()) as $key => $value) {
            $field->set($key, $value);
        }

        return $field->render();
    }
private function render(Field $field)
    {
        $field->set('lang', $this->language);
        $field->set('prefix', $this->buildPrefix($field));

        foreach ($this->fill($field->getAttributes()) as $key => $value) {
            $field->set($key, $value);
        }

        return $field->render();
    }
private function render ( Field $ field ) { $ field -> set ( 'lang' , $ this -> language ) ; $ field -> set ( 'prefix' , $ this -> buildPrefix ( $ field ) ) ; foreach ( $ this -> fill ( $ field -> getAttributes ( ) ) as $ key => $ value ) { $ field -> set ( $ key , $ value ) ; } return $ field -> render ( ) ; }
Render field for forms.

@param Field $field

@throws \Throwable

@return mixed
Render field for forms .