*/ class BookSearchType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options): void { $builder ->add('author', TextType::class, ['label' => 'book_author_header', 'required' => false]) ->add('title', TextType::class, ['label' => 'book_title_header', 'required' => false]) ->add('edition', TextType::class, ['label' => 'book_edition_header', 'required' => false]) ->add('publisher', TextType::class, ['label' => 'book_publisher_header', 'required' => false]); } public function configureOptions(OptionsResolver $resolver): void { $resolver->setDefaults([ 'data_class' => BookSearch::class, 'method' => 'GET', 'csrf_protection' => false, ]); } public function getBlockPrefix(): string { return ''; } }