@@ 145-152 (lines=8) @@ | ||
142 | * @param FormBuilderInterface|FormInterface $form |
|
143 | * @param array $options |
|
144 | */ |
|
145 | protected function addBusinessEntityFields($form, $options) |
|
146 | { |
|
147 | $form->add('fields', WidgetFieldsFormType::class, [ |
|
148 | 'label' => 'widget.form.entity.fields.label', |
|
149 | 'namespace' => $options['namespace'], |
|
150 | 'widget' => $options['widget'], |
|
151 | ]); |
|
152 | } |
|
153 | ||
154 | /** |
|
155 | * Add the fields for the form and the entity mode. |
|
@@ 181-189 (lines=9) @@ | ||
178 | * @param FormBuilderInterface|FormInterface $form |
|
179 | * @param array $options |
|
180 | */ |
|
181 | protected function addQueryFields($form, $options) |
|
182 | { |
|
183 | $form->add('query'); |
|
184 | $form->add('fields', WidgetFieldsFormType::class, [ |
|
185 | 'label' => 'widget.form.entity.fields.label', |
|
186 | 'namespace' => $options['namespace'], |
|
187 | 'widget' => $options['widget'], |
|
188 | ]); |
|
189 | } |
|
190 | ||
191 | /** |
|
192 | * bind form to WidgetRedactor entity. |