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.

ProductCategoryAdminController.php 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace Lc\CaracoleBundle\Controller\Product;
  3. //use Lc\CaracoleBundle\Field\AssociationField;
  4. use EasyCorp\Bundle\EasyAdminBundle\Field\AssociationField;
  5. use EasyCorp\Bundle\EasyAdminBundle\Field\FormField;
  6. use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField;
  7. use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
  8. use Lc\CaracoleBundle\Controller\AdminControllerTrait;
  9. use Lc\CaracoleBundle\Field\Address\AddressField;
  10. use Lc\SovBundle\Controller\AbstractAdminController;
  11. use Lc\SovBundle\Field\BooleanField;
  12. use Lc\SovBundle\Field\CKEditorField;
  13. use Lc\SovBundle\Field\StatusField;
  14. abstract class ProductCategoryAdminController extends AbstractAdminController
  15. {
  16. use AdminControllerTrait;
  17. public function configureFields(string $pageName): iterable
  18. {
  19. return array_merge(
  20. [
  21. FormField::addPanel('general'),
  22. TextField::new('title'),
  23. AssociationField::new('parent'),
  24. CKEditorField::new('description'),
  25. BooleanField::new('saleStatus'),
  26. StatusField::new('status'),
  27. ],
  28. $this->getSeoPanel(),
  29. $this->getConfPanel()
  30. );
  31. }
  32. }