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.

31 satır
786B

  1. <?php
  2. namespace Lc\CaracoleBundle\Definition\Field\Site;
  3. use Lc\CaracoleBundle\Definition\Field\FieldDefinitionTrait;
  4. use Lc\CaracoleBundle\Repository\Section\SectionStore;
  5. use Lc\SovBundle\Definition\Field\Site\PageFieldDefinition as SovPageFieldDefinition;
  6. use Lc\SovBundle\Translation\TranslatorAdmin;
  7. class PageFieldDefinition extends SovPageFieldDefinition
  8. {
  9. use FieldDefinitionTrait;
  10. protected SectionStore $sectionStore;
  11. public function __construct(TranslatorAdmin $translatorAdmin, SectionStore $sectionStore)
  12. {
  13. parent::__construct($translatorAdmin);
  14. $this->sectionStore = $sectionStore;
  15. }
  16. public function configureIndex(): array
  17. {
  18. return [
  19. 'id',
  20. 'title',
  21. 'status'
  22. ];
  23. }
  24. }