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

EntryAdminController.php 679B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Lc\PietroBundle\Controller\Workshop;
  3. use Lc\PietroBundle\Controller\AbstractAdminController;
  4. use Lc\SovBundle\Repository\RepositoryQueryInterface;
  5. abstract class EntryAdminController extends AbstractAdminController
  6. {
  7. public function createEntity(string $entityFqcn)
  8. {
  9. return $this->getEntryContainer()->getFactory()->create();
  10. }
  11. public function getRepositoryQuery(): RepositoryQueryInterface
  12. {
  13. return $this->getEntryContainer()->getRepositoryQuery();
  14. }
  15. public function configureFields(string $pageName): iterable
  16. {
  17. return $this->getEntryContainer()->getFieldDefinition()->getFields($pageName);
  18. }
  19. }