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.

32 lines
892B

  1. <?php
  2. namespace Lc\PietroBundle\Definition\Field\Workshop;
  3. use EasyCorp\Bundle\EasyAdminBundle\Field\AssociationField;
  4. use EasyCorp\Bundle\EasyAdminBundle\Field\TextareaField;
  5. use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
  6. use Lc\SovBundle\Definition\Field\AbstractFieldDefinition;
  7. use Lc\SovBundle\Field\CKEditorField;
  8. use Lc\SovBundle\Field\ImageManagerField;
  9. class WorkshopThematicFieldDefinition extends AbstractFieldDefinition
  10. {
  11. public function configureIndex(): array
  12. {
  13. return [
  14. 'image',
  15. 'title',
  16. 'color'
  17. ];
  18. }
  19. public function configureFields(): array
  20. {
  21. return [
  22. 'image' => ImageManagerField::new('image'),
  23. 'title' => TextField::new('title'),
  24. 'description' => TextareaField::new('description'),
  25. 'color' => TextField::new('color'),
  26. ];
  27. }
  28. }