/** * {@inheritdoc} */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('className', 'text', ['label' => 'oro.entity_extend.form.name.label', 'block' => 'general', 'subblock' => 'second', 'constraints' => [new Assert\Length(['min' => 5, 'max' => $this->nameGenerator->getMaxCustomEntityNameSize()])]]); }