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.

31 lines
872B

  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 configureFields(): array
  19. {
  20. return [
  21. 'image' => ImageManagerField::new('image'),
  22. 'title' => TextField::new('title'),
  23. 'description' => TextareaField::new('description'),
  24. 'color' => TextField::new('color'),
  25. ];
  26. }
  27. }