for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Common\Form;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\OptionsResolver\OptionsResolver;
class TitleType extends TextType
{
public function configureOptions(OptionsResolver $resolver): void
parent::configureOptions($resolver);
$resolver->setDefaults(
[
'label' => 'lbl.Title',
'required' => true,
'attr' => [
'class' => 'form-control title',
]
);
}
public function getBlockPrefix(): string
return 'title';