Skip to content

Commit 5277930

Browse files
authored
Merge pull request #10 from Victoire/paulandrieux-patch-1
placeholder option does not exists anymore
2 parents 4e52c1f + 0c66a16 commit 5277930

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Form/WidgetSitemapType.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,15 @@ public function buildForm(FormBuilderInterface $builder, array $options)
2323
{
2424
$builder->add('rootPage', null, [
2525
'label' => 'widget_sitemap.form.rootPage.label',
26-
'placeholder' => 'widget_sitemap.form.rootPage.placeholder',
26+
'attr' => [
27+
'placeholder' => 'widget_sitemap.form.rootPage.placeholder',
28+
],
2729
'required' => true,
2830
])->add('depth', IntegerType::class, [
2931
'label' => 'widget_sitemap.form.depth.label',
30-
'placeholder' => 'widget_sitemap.form.depth.placeholder',
32+
'attr' => [
33+
'placeholder' => 'widget_sitemap.form.depth.placeholder',
34+
],
3135
'required' => false,
3236
]);
3337
parent::buildForm($builder, $options);

0 commit comments

Comments
 (0)