src/FieldBuilder.php
protected function getHtmlName($name)
    {
        if (strpos($name, '.')) {
            $segments = explode('.', $name);
            return array_shift($segments).'['.implode('][', $segments).']';
        }

        return $name;
    }
protected function getHtmlName($name)
    {
        if (strpos($name, '.')) {
            $segments = explode('.', $name);
            return array_shift($segments).'['.implode('][', $segments).']';
        }

        return $name;
    }
protected function getHtmlName ( $ name ) { if ( strpos ( $ name , '.' ) ) { $ segments = explode ( '.' , $ name ) ; return array_shift ( $ segments ) . '[' . implode ( '][' , $ segments ) . ']' ; } return $ name ; }
Get the HTML name for the input control.

You can use dots to specify arrays:

product.category.name will be converted to: product[category][name]

@param  string $name
@return string
Get the HTML name for the input control .