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.

33 line
875B

  1. <?php
  2. namespace Lc\CaracoleBundle\Controller\Product;
  3. use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
  4. use Lc\CaracoleBundle\Controller\AbstractAdminController;
  5. use Lc\SovBundle\Field\ImageManagerField;
  6. use Lc\SovBundle\Repository\RepositoryQueryInterface;
  7. abstract class QualityLabelAdminController extends AbstractAdminController
  8. {
  9. public function getRepositoryQuery() :RepositoryQueryInterface
  10. {
  11. return $this->getQualityLabelContainer()->getRepositoryQuery();
  12. }
  13. public function createEntity(string $entityFqcn)
  14. {
  15. return $this->getQualityLabelContainer()->getFactory()->create();
  16. }
  17. public function configureFields(string $pageName): iterable
  18. {
  19. return [
  20. TextField::new('title'),
  21. ImageManagerField::new('image'),
  22. TextField::new('devAlias'),
  23. ];
  24. }
  25. }