|
- <?php
-
- namespace Lc\CaracoleBundle\Definition\Field\Reduction;
-
- use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
- use Lc\CaracoleBundle\Definition\Field\AbstractFieldDefinition;
- use Lc\CaracoleBundle\Repository\Section\SectionStore;
- use Lc\SovBundle\Translation\TranslatorAdmin;
-
- class ReductionCatalogFieldDefinition extends AbstractFieldDefinition
- {
- protected SectionStore $sectionStore;
-
- public function __construct(TranslatorAdmin $translatorAdmin, SectionStore $sectionStore)
- {
- parent::__construct($translatorAdmin);
- $this->sectionStore = $sectionStore;
- }
-
- public function configureFields(): array
- {
- return [
- 'title' => TextField::new('title')->setSortable(true)
- // @TODO : à faire
- ];
- }
- }
|