add( 'title', TextBlockType::class, [ 'label' => 'Titre', 'required' => true, 'attr' => [ ], 'constraints' => [ ], ] ); $builder->add( 'subTitle', TextBlockType::class, [ 'label' => 'Sous-titre', 'required' => true, 'attr' => [ ], 'constraints' => [ ], ] ); } public function setTitle(Block $block) { return $this->setBlock($block); } public function getTitle() { return $this->getBlock('title'); } public function setSubTitle(Block $block) { return $this->setBlock($block); } public function getSubTitle() { return $this->getBlock('subTitle'); } }