function ViewsFormInterface::getForm
Same name in other branches
- 9 core/modules/views_ui/src/Form/Ajax/ViewsFormInterface.php \Drupal\views_ui\Form\Ajax\ViewsFormInterface::getForm()
- 8.9.x core/modules/views_ui/src/Form/Ajax/ViewsFormInterface.php \Drupal\views_ui\Form\Ajax\ViewsFormInterface::getForm()
- 11.x core/modules/views_ui/src/Form/Ajax/ViewsFormInterface.php \Drupal\views_ui\Form\Ajax\ViewsFormInterface::getForm()
Creates a new instance of this form.
@todo When https://www.drupal.org/node/1843224 is in, this will return \Drupal\Core\Ajax\AjaxResponse instead of the array of AJAX commands.
Parameters
\Drupal\views\ViewEntityInterface $view: The view being edited.
string|null $display_id: The display ID being edited, or NULL to load the first available display.
string $js: If this is an AJAX form, it will be the string 'ajax'. Otherwise, it will be 'nojs'. This determines the response.
Return value
array A form for a specific operation in the Views UI, or an array of AJAX commands to render a form.
1 method overrides ViewsFormInterface::getForm()
- ViewsFormBase::getForm in core/
modules/ views_ui/ src/ Form/ Ajax/ ViewsFormBase.php - Creates a new instance of this form.
File
-
core/
modules/ views_ui/ src/ Form/ Ajax/ ViewsFormInterface.php, line 53
Class
Namespace
Drupal\views_ui\Form\AjaxCode
public function getForm(ViewEntityInterface $view, $display_id, $js);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.