Loading core/modules/views/src/Form/ViewsFormMainForm.php +1 −6 Original line number Diff line number Diff line Loading @@ -107,12 +107,7 @@ public function buildForm(array $form, FormStateInterface $form_state, ViewExecu // If the field provides a views form, allow it to modify the $form array. $has_form = FALSE; if (property_exists($field, 'views_form_callback')) { $callback = $field->views_form_callback; $callback($view, $field, $form, $form_state); $has_form = TRUE; } elseif (method_exists($field, 'viewsForm')) { if (method_exists($field, 'viewsForm')) { $field->viewsForm($form, $form_state); $has_form = TRUE; } Loading core/modules/views/src/ViewExecutable.php +1 −1 Original line number Diff line number Diff line Loading @@ -2451,7 +2451,7 @@ public function buildThemeFunctions($hook) { */ public function hasFormElements() { foreach ($this->field as $field) { if (property_exists($field, 'views_form_callback') || method_exists($field, 'viewsForm')) { if (method_exists($field, 'viewsForm')) { return TRUE; } } Loading Loading
core/modules/views/src/Form/ViewsFormMainForm.php +1 −6 Original line number Diff line number Diff line Loading @@ -107,12 +107,7 @@ public function buildForm(array $form, FormStateInterface $form_state, ViewExecu // If the field provides a views form, allow it to modify the $form array. $has_form = FALSE; if (property_exists($field, 'views_form_callback')) { $callback = $field->views_form_callback; $callback($view, $field, $form, $form_state); $has_form = TRUE; } elseif (method_exists($field, 'viewsForm')) { if (method_exists($field, 'viewsForm')) { $field->viewsForm($form, $form_state); $has_form = TRUE; } Loading
core/modules/views/src/ViewExecutable.php +1 −1 Original line number Diff line number Diff line Loading @@ -2451,7 +2451,7 @@ public function buildThemeFunctions($hook) { */ public function hasFormElements() { foreach ($this->field as $field) { if (property_exists($field, 'views_form_callback') || method_exists($field, 'viewsForm')) { if (method_exists($field, 'viewsForm')) { return TRUE; } } Loading