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

27 行
786B

  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. }