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

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