您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

24 行
619B

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