Skip to content

Commit

Permalink
Merge pull request #4 from monsieurbiz/feature/meta-required-false
Browse files Browse the repository at this point in the history
Add required false for meta fields
  • Loading branch information
maximehuran committed Aug 26, 2024
2 parents fc425e8 + d252939 commit d950806
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Form/Type/ArticleTranslationType.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,17 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
])
->add('metaTitle', TextType::class, [
'label' => 'monsieurbiz_blog.form.article.meta_title',
'required' => false,
'help' => 'monsieurbiz_blog.form.article.help.meta_title',
])
->add('metaDescription', TextType::class, [
'label' => 'monsieurbiz_blog.form.article.meta_description',
'required' => false,
'help' => 'monsieurbiz_blog.form.article.help.meta_description',
])
->add('metaKeywords', TextType::class, [
'label' => 'monsieurbiz_blog.form.article.meta_keywords',
'required' => false,
])
;
}
Expand Down

0 comments on commit d950806

Please sign in to comment.