src/Helpers/FormRenderer.php
protected function renderFields(array $fields)
    {
        $output = '';
        foreach ($fields as $id => $field) {
            // Add defaults.
            $field += array(
                'id' => $id,
                'name' => $id,
                'label' => '',
                'value' => '',
                'description' => '',
                'attributes' => array(),
                'options' => array(),
            );
            $output .= $this->renderField($field);
        }
        return $output;
    }
protected function renderFields(array $fields)
    {
        $output = '';
        foreach ($fields as $id => $field) {
            // Add defaults.
            $field += array(
                'id' => $id,
                'name' => $id,
                'label' => '',
                'value' => '',
                'description' => '',
                'attributes' => array(),
                'options' => array(),
            );
            $output .= $this->renderField($field);
        }
        return $output;
    }
protected function renderFields ( array $ fields ) { $ output = '' ; foreach ( $ fields as $ id => $ field ) { // Add defaults. $ field += array ( 'id' => $ id , 'name' => $ id , 'label' => '' , 'value' => '' , 'description' => '' , 'attributes' => array ( ) , 'options' => array ( ) , ) ; $ output .= $ this -> renderField ( $ field ) ; } return $ output ; }
Renders a set of field definitions.

@param array[] $fields

@return string
Renders a set of field definitions .