newView example

// Should be decoupled from the specific option at some point         $dataClass = $options['data_class'] ?? null;

        $builder = $this->newBuilder($name$dataClass$factory$options);
        $builder->setType($this);

        return $builder;
    }

    public function createView(FormInterface $form, FormView $parent = null): FormView
    {
        return $this->newView($parent);
    }

    /** * @return void */
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $this->parent?->buildForm($builder$options);

        $this->innerType->buildForm($builder$options);

        
Home | Imprint | This part of the site doesn't use cookies.