|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
-
- namespace Lc\CaracoleBundle\Definition\Field\PointSale;
-
- use EasyCorp\Bundle\EasyAdminBundle\Field\IntegerField;
- use EasyCorp\Bundle\EasyAdminBundle\Field\TextEditorField;
- use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
- use Lc\CaracoleBundle\Field\Address\AddressField;
- use Lc\SovBundle\Definition\Field\AbstractFieldDefinition;
- use Lc\SovBundle\Field\StatusField;
-
- class PointSaleFieldDefinition extends AbstractFieldDefinition
- {
-
- public function configureIndex(): array
- {
- return [
- 'id',
- 'title',
- 'status'
- ];
- }
-
- public function configurePanels(): array
- {
- return [
- 'main',
- 'address',
- 'seo',
- 'conf',
- ];
- }
-
- public function configurePanelMain(): array
- {
- return [
- 'title',
- 'description',
- 'status'
- ];
- }
-
- public function configurePanelAddress(): array
- {
- return [
- 'address'
- ];
- }
-
- public function configureFields(): array
- {
- return [
- 'id' => IntegerField::new('id')->setSortable(true)->onlyOnIndex(),
- 'title' => TextField::new('title')->setSortable(true),
- 'description' => TextEditorField::new('description'),
- 'status' => StatusField::new('status')->setSortable(true),
- 'address' => AddressField::new('address')
- ->setRequired(true),
- ];
- }
-
- }
|