src/AdminBundle/Form/Type/ContentType.php line 8

Open in your IDE?
  1. <?php
  2. namespace AdminBundle\Form\Type;
  3. use Sonata\Form\Type\CollectionType;
  4. use Symfony\Component\Form\AbstractType;
  5. class ContentType extends AbstractType
  6. {
  7.     public function getParent(): string
  8.     {
  9.         return CollectionType::class;
  10.     }
  11.     public function getBlockPrefix(): string
  12.     {
  13.         return 'post_content';
  14.     }
  15.     public function getName()
  16.     {
  17.         return $this->getBlockPrefix();
  18.     }
  19. }