public function normalizeFormFieldTagParams($name, $value, array $attributes, $fieldType = null)
    {
        if (!isset($attributes['id'])) {
            $attributes['id'] = trim(
                str_replace(['[', ']', '()', '__'], ['_', '_', '', '_'], $name),
                '_'
            );
        }
        if ($name) {
            $attributes['name'] = $name;
        }
        return [$name, (string)$value, $attributes];
    }
public function normalizeFormFieldTagParams($name, $value, array $attributes, $fieldType = null)
    {
        if (!isset($attributes['id'])) {
            $attributes['id'] = trim(
                str_replace(['[', ']', '()', '__'], ['_', '_', '', '_'], $name),
                '_'
            );
        }
        if ($name) {
            $attributes['name'] = $name;
        }
        return [$name, (string)$value, $attributes];
    }
public function normalizeFormFieldTagParams ( $ name , $ value , array $ attributes , $ fieldType = null ) { if ( ! isset ( $ attributes [ 'id' ] ) ) { $ attributes [ 'id' ] = trim ( str_replace ( [ '[' , ']' , '()' , '__' ] , [ '_' , '_' , '' , '_' ] , $ name ) , '_' ) ; } if ( $ name ) { $ attributes [ 'name' ] = $ name ; } return [ $ name , ( string ) $ value , $ attributes ] ; }
This method can be "extended" to edit attributes for form-related tags.
This method can be extended to edit attributes for form - related tags .