concrete/src/Form/Service/Form.php
protected function parseMiscFields($defaultClass, $attributes)
    {
        $attributes = (array) $attributes;
        if ($defaultClass) {
            $attributes['class'] = trim((isset($attributes['class']) ? $attributes['class'] : '') . ' ' . $defaultClass);
        }
        $attr = '';
        foreach ($attributes as $k => $v) {
            $attr .= " $k=\"$v\"";
        }

        return $attr;
    }
protected function parseMiscFields($defaultClass, $attributes)
    {
        $attributes = (array) $attributes;
        if ($defaultClass) {
            $attributes['class'] = trim((isset($attributes['class']) ? $attributes['class'] : '') . ' ' . $defaultClass);
        }
        $attr = '';
        foreach ($attributes as $k => $v) {
            $attr .= " $k=\"$v\"";
        }

        return $attr;
    }
protected function parseMiscFields ( $ defaultClass , $ attributes ) { $ attributes = ( array ) $ attributes ; if ( $ defaultClass ) { $ attributes [ 'class' ] = trim ( ( isset ( $ attributes [ 'class' ] ) ? $ attributes [ 'class' ] : '' ) . ' ' . $ defaultClass ) ; } $ attr = '' ; foreach ( $ attributes as $ k => $ v ) { $ attr .= " $k=\"$v\"" ; } return $ attr ; }
Create an HTML fragment of attribute values, merging any CSS class names as necessary.

@param string $defaultClass Default CSS class name
@param array $attributes a hash array of attributes (name => value), possibly including 'class'

@return string A fragment of attributes suitable to put inside of an HTML tag
Create an HTML fragment of attribute values merging any CSS class names as necessary .