original_string: 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];
      }
code: 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];
      }
code_tokens: 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 ] ; }
docstring: This method can be "extended" to edit attributes for form-related tags.
docstring_tokens: This method can be extended to edit attributes for form - related tags .