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.

44 line
952B

  1. <?php
  2. namespace Lc\SovBundle\Definition\Field\Site;
  3. use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
  4. use Lc\SovBundle\Definition\Field\AbstractFieldDefinition;
  5. use Lc\SovBundle\Field\CKEditorField;
  6. class PageFieldDefinition extends AbstractFieldDefinition
  7. {
  8. public function configureIndex(): array
  9. {
  10. return [
  11. 'id',
  12. 'title',
  13. 'status'
  14. ];
  15. }
  16. public function configurePanelGeneral(): array
  17. {
  18. return [
  19. 'title',
  20. 'description',
  21. 'status'
  22. ];
  23. }
  24. public function configurePanels(): array
  25. {
  26. return ['general', 'seo', 'opengraph', 'conf'];
  27. }
  28. public function configureFields(): array
  29. {
  30. return [
  31. 'title' => TextField::new('title')->setSortable(true),
  32. 'description' => CKEditorField::new('description')->hideOnIndex(),
  33. ];
  34. }
  35. }