protected function newBuilder(string
$name, ?string
$dataClass, FormFactoryInterface
$factory, array
$options): FormBuilderInterface
{ if ($this->innerType instanceof ButtonTypeInterface
) { return new ButtonBuilder($name,
$options);
} if ($this->innerType instanceof SubmitButtonTypeInterface
) { return new SubmitButtonBuilder($name,
$options);
} return new FormBuilder($name,
$dataClass,
new EventDispatcher(),
$factory,
$options);
} /**
* Creates a new view instance.
*
* Override this method if you want to customize the view class.
*/
protected function newView(FormView
$parent = null
): FormView
{