|
123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
-
- namespace Lc\PietroBundle\Definition\Field\Workshop;
-
- use EasyCorp\Bundle\EasyAdminBundle\Field\AssociationField;
- use EasyCorp\Bundle\EasyAdminBundle\Field\TextareaField;
- use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
- use Lc\SovBundle\Definition\Field\AbstractFieldDefinition;
- use Lc\SovBundle\Field\CKEditorField;
- use Lc\SovBundle\Field\ImageManagerField;
-
- class WorkshopThematicFieldDefinition extends AbstractFieldDefinition
- {
- public function configureIndex(): array
- {
- return [
- 'image',
- 'title',
- ];
- }
-
- public function configureForm(): array
- {
- return [
- 'image',
- 'title',
- 'description',
- 'color',
- 'devAlias',
- ];
- }
-
- public function configureFields(): array
- {
- return [
- 'image' => ImageManagerField::new('image'),
- 'title' => TextField::new('title'),
- 'description' => TextareaField::new('description'),
- 'color' => TextField::new('color'),
- ];
- }
- }
|