|
12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
-
- namespace Lc\SovBundle\Definition\Field\Site;
-
- use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
- use Lc\SovBundle\Definition\Field\AbstractFieldDefinition;
- use Lc\SovBundle\Field\CKEditorField;
-
- class PageFieldDefinition extends AbstractFieldDefinition
- {
-
- public function configureIndex(): array
- {
- return [
- 'id',
- 'title',
- 'status'
- ];
- }
-
- public function configurePanelMain(): array
- {
- return [
- 'title',
- 'description',
- 'status'
- ];
- }
-
- public function configurePanels(): array
- {
- return ['main', 'seo', 'conf'];
- }
-
- public function configureFields(): array
- {
- return [
- 'title' => TextField::new('title')->setSortable(true),
- 'description' => CKEditorField::new('description')->hideOnIndex(),
- ];
- }
-
- }
|