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.

42 lines
1.1KB

  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. ];
  17. }
  18. public function configureForm(): array
  19. {
  20. return [
  21. 'image',
  22. 'title',
  23. 'description',
  24. 'color',
  25. 'devAlias',
  26. ];
  27. }
  28. public function configureFields(): array
  29. {
  30. return [
  31. 'image' => ImageManagerField::new('image'),
  32. 'title' => TextField::new('title'),
  33. 'description' => TextareaField::new('description'),
  34. 'color' => TextField::new('color'),
  35. ];
  36. }
  37. }