Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

28 rindas
786B

  1. <?php
  2. namespace Lc\SovBundle\Controller\User;
  3. use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
  4. use Lc\SovBundle\Container\User\GroupUserContainer;
  5. use Lc\SovBundle\Controller\AbstractAdminController;
  6. use Lc\SovBundle\Factory\User\GroupUserFactory;
  7. use Lc\SovBundle\Field\StatusField;
  8. abstract class GroupUserAdminController extends AbstractAdminController
  9. {
  10. public function configureFields(string $pageName): iterable
  11. {
  12. return [
  13. TextField::new('title')->setSortable(true),
  14. TextField::new('devAlias')->hideOnIndex(),
  15. StatusField::new('status')->setSortable(true),
  16. ];
  17. }
  18. public function createEntity(string $entityFqcn)
  19. {
  20. return $this->get(GroupUserContainer::class)->getFactory()->create();
  21. }
  22. }