You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
516B

  1. <?php
  2. namespace Lc\PietroBundle\Controller\Thematic;
  3. use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
  4. use Lc\PietroBundle\Controller\AbstractAdminController;
  5. abstract class ThematicAdminController extends AbstractAdminController
  6. {
  7. public function createEntity(string $entityFqcn)
  8. {
  9. return $this->getThematicContainer()->getFactory()->create();
  10. }
  11. public function configureFields(string $pageName): iterable
  12. {
  13. return [
  14. TextField::new('name')
  15. ];
  16. }
  17. }