@@ -118,45 +118,45 @@ public function getFormDefinition(FAPI\Form $form, &$form_state)
118118 'validate ' => ['required ' ],
119119 ]
120120 )
121- ->addField (
122- 'website_id ' ,
123- [
124- 'type ' => 'select ' ,
125- 'title ' => 'Website ' ,
126- 'default_value ' => $ configuration_website ,
127- 'options ' => $ websites ,
128- 'validate ' => ['required ' ],
129- ]
130- )
131- ->addField (
132- 'locale ' ,
133- [
134- 'type ' => 'select ' ,
135- 'title ' => 'Locale ' ,
136- 'default_value ' => $ configuration_locale ,
137- 'options ' => $ languages ,
138- // 'validate' => ['required'],
139- ]
140- )
141- ->addField (
142- 'value ' ,
143- [
144- 'type ' => 'textarea ' ,
145- 'title ' => 'Configuration Value ' ,
146- 'default_value ' => $ configuration_value ,
147- 'rows ' => 3 ,
148- // 'validate' => ['required'],
149- ]
150- )
151- ->addField (
152- 'button ' ,
153- [
154- 'type ' => 'submit ' ,
155- 'value ' => 'ok ' ,
156- 'container_class ' => 'form-item mt-3 ' ,
157- 'attributes ' => ['class ' => 'btn btn-primary btn-lg btn-block ' ],
158- ]
159- );
121+ ->addField (
122+ 'website_id ' ,
123+ [
124+ 'type ' => 'select ' ,
125+ 'title ' => 'Website ' ,
126+ 'default_value ' => $ configuration_website ,
127+ 'options ' => $ websites ,
128+ 'validate ' => ['required ' ],
129+ ]
130+ )
131+ ->addField (
132+ 'locale ' ,
133+ [
134+ 'type ' => 'select ' ,
135+ 'title ' => 'Locale ' ,
136+ 'default_value ' => $ configuration_locale ,
137+ 'options ' => $ languages ,
138+ // 'validate' => ['required'],
139+ ]
140+ )
141+ ->addField (
142+ 'value ' ,
143+ [
144+ 'type ' => 'textarea ' ,
145+ 'title ' => 'Configuration Value ' ,
146+ 'default_value ' => $ configuration_value ,
147+ 'rows ' => 3 ,
148+ // 'validate' => ['required'],
149+ ]
150+ )
151+ ->addField (
152+ 'button ' ,
153+ [
154+ 'type ' => 'submit ' ,
155+ 'value ' => 'ok ' ,
156+ 'container_class ' => 'form-item mt-3 ' ,
157+ 'attributes ' => ['class ' => 'btn btn-primary btn-lg btn-block ' ],
158+ ]
159+ );
160160 break ;
161161
162162 case 'delete ' :
@@ -237,8 +237,8 @@ protected function getTableHeader()
237237 return [
238238 'ID ' => 'id ' ,
239239 'Website ' => 'website_id ' ,
240- 'Locale ' => ' locale ' ,
241- 'Path ' => ' path ' ,
240+ 'Locale ' => [ ' order ' => ' locale ', ' search ' => ' locale ' ] ,
241+ 'Path ' => [ ' order ' => ' path ', ' search ' => ' path ' ] ,
242242 'Value ' => null ,
243243 'Is System ' => 'is_system ' ,
244244 'actions ' => null ,
0 commit comments