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.

ReductionCartFieldDefinition.php 786B

преди 3 години
123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Lc\CaracoleBundle\Definition\Field\Reduction;
  3. use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
  4. use Lc\CaracoleBundle\Definition\Field\AbstractFieldDefinition;
  5. use Lc\CaracoleBundle\Repository\Section\SectionStore;
  6. use Lc\SovBundle\Translation\TranslatorAdmin;
  7. class ReductionCartFieldDefinition extends AbstractFieldDefinition
  8. {
  9. protected SectionStore $sectionStore;
  10. public function __construct(TranslatorAdmin $translatorAdmin, SectionStore $sectionStore)
  11. {
  12. parent::__construct($translatorAdmin);
  13. $this->sectionStore = $sectionStore;
  14. }
  15. public function configureFields(): array
  16. {
  17. return [
  18. 'title' => TextField::new('title')->setSortable(true)
  19. // @TODO : à faire
  20. ];
  21. }
  22. }