Former\Form\Group::prependAppend PHP Méthode

prependAppend() protected méthode

Format the field with prepended/appended elements
protected prependAppend ( Field $field ) : string
$field Field The field to format
Résultat string Field plus supplementary elements
    protected function prependAppend($field)
    {
        if (!$this->prepend and !$this->append) {
            return $field->render();
        }
        return $this->app['former.framework']->prependAppend($field, $this->prepend, $this->append);
    }