*/ class BorrowType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options): void { $builder ->add('who', TextType::class, [ 'label' => 'borrow_who_header', 'constraints' => [new NotBlank(), new Length(max: 255)], ]) ->add('save', SubmitType::class, ['label' => 'borrow_action_lend']); } }