From 9faf351d43ac26237c463a6517fcbefe38382ecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C2=A7Dev?= <78922125+LSS-commits@users.noreply.github.com> Date: Tue, 29 Oct 2024 14:21:49 +0100 Subject: [PATCH] Update frontend-forms.md Correction => syntax and structure errors in addField --- dev/documentation/3.3/en/frontend-forms.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/dev/documentation/3.3/en/frontend-forms.md b/dev/documentation/3.3/en/frontend-forms.md index 9c486d77a87b..c54cff6b4b36 100644 --- a/dev/documentation/3.3/en/frontend-forms.md +++ b/dev/documentation/3.3/en/frontend-forms.md @@ -189,14 +189,14 @@ HookRegistry::register('Form::config::before', function($hookName, $form) { $form->removeField('subjects'); - $form->addField(new \PKP\components\forms\FieldSelect('subjects') { - 'label' => __('common.subjects'), - 'isMultilingual' => true, - 'options' => [ - ['value' => 'geology', 'label' => __('subject.geology'), - ['value' => 'physics', 'label' => __('subject.physics'), - ], - }); + $form->addField(new \PKP\components\forms\FieldSelect('subjects', [ + 'label' => __('common.subjects'), + 'isMultilingual' => true, + 'options' => [ + ['value' => 'geology', 'label' => __('subject.geology')], + ['value' => 'physics', 'label' => __('subject.physics')], + ], + ])); return false; } @@ -281,4 +281,4 @@ The UI Library includes an example of [conditional display](/dev/#/component/For --- -Learn about another complex component, [ListPanels](./frontend-list-panels), in the next section. \ No newline at end of file +Learn about another complex component, [ListPanels](./frontend-list-panels), in the next section.