App\UIObjects\Form\FormLangText::render PHP Method

render() public method

public render ( )
    public function render()
    {
        $args = $this->arguments;
        $value = array_get($args, 'value');
        if ($value !== null) {
            array_set($args, 'langKey', $value);
        }
        $label = array_get($args, 'label', '');
        if ($label) {
            $label = '<label>' . $label . '</label>';
        }
        $content = uio('langText', $args);
        return sprintf('
            <div class="form-group">
                %s
                %s
            </div>
        ', $label, $content);
    }
FormLangText