src/PrestaShop/Helpers/FormMapper.php
protected function field(array $field)
    {
        if (!empty($field['fields'])) {
            $result = $this->fieldset($field);
        } else {
            $result = $this->element($field);
        }
        return $result;
    }
protected function field(array $field)
    {
        if (!empty($field['fields'])) {
            $result = $this->fieldset($field);
        } else {
            $result = $this->element($field);
        }
        return $result;
    }
protected function field ( array $ field ) { if ( ! empty ( $ field [ 'fields' ] ) ) { $ result = $ this -> fieldset ( $ field ) ; } else { $ result = $ this -> element ( $ field ) ; } return $ result ; }
Maps a single field definition, possibly a fieldset.

@param array $field
Field(set) definition.

@return array
Maps a single field definition possibly a fieldset .