Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class ArticleTypeExtension extends AbstractTypeExtension |
||
13 | { |
||
14 | /** |
||
15 | * {@inheritdoc} |
||
16 | */ |
||
17 | public function buildForm(FormBuilderInterface $builder, array $options): void |
||
18 | { |
||
19 | parent::buildForm($builder, $options); |
||
20 | |||
21 | $builder |
||
22 | ->add('channels', ChannelChoiceType::class, [ |
||
23 | 'multiple' => true, |
||
24 | 'expanded' => true, |
||
25 | 'label' => 'odiseo_sylius_blog_plugin.form.article.channels', |
||
26 | ]) |
||
27 | ; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | public static function getExtendedTypes(): iterable |
||
36 | } |
||
37 | } |
||
38 |