We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16cb765 commit f895c92Copy full SHA for f895c92
src/Form/Type/TaxonImageType.php
@@ -4,10 +4,19 @@
4
5
namespace Aropixel\SyliusAdminMediaPlugin\Form\Type;
6
7
+use App\Entity\Taxonomy\TaxonImage;
8
+use Symfony\Component\OptionsResolver\OptionsResolver;
9
10
final class TaxonImageType extends ImageType
11
{
12
13
+ public function configureOptions(OptionsResolver $resolver): void
14
+ {
15
+ $resolver->setDefaults(array(
16
+ 'data_class' => TaxonImage::class,
17
+ ));
18
+ }
19
+
20
public function getBlockPrefix(): string
21
22
return 'sylius_taxon_image';
0 commit comments