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.

GroupUserAdminController.php 786B

преди 3 години
преди 3 години
преди 3 години
преди 3 години
преди 3 години
преди 3 години
преди 3 години
123456789101112131415161718192021222324252627
  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. }