function ViewsFormBase::setType
Same name in other branches
- 8.9.x core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php \Drupal\views_ui\Form\Ajax\ViewsFormBase::setType()
- 10 core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php \Drupal\views_ui\Form\Ajax\ViewsFormBase::setType()
- 11.x core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php \Drupal\views_ui\Form\Ajax\ViewsFormBase::setType()
Sets the type for this form.
Parameters
string $type: The type of the item this form is manipulating.
13 calls to ViewsFormBase::setType()
- AddHandler::getForm in core/
modules/ views_ui/ src/ Form/ Ajax/ AddHandler.php - Creates a new instance of this form.
- AddHandler::__construct in core/
modules/ views_ui/ src/ Form/ Ajax/ AddHandler.php - Constructs a new AddHandler object.
- ConfigHandler::getForm in core/
modules/ views_ui/ src/ Form/ Ajax/ ConfigHandler.php - Creates a new instance of this form.
- ConfigHandler::__construct in core/
modules/ views_ui/ src/ Form/ Ajax/ ConfigHandler.php - Constructs a new ConfigHandler object.
- ConfigHandlerExtra::getForm in core/
modules/ views_ui/ src/ Form/ Ajax/ ConfigHandlerExtra.php - Creates a new instance of this form.
File
-
core/
modules/ views_ui/ src/ Form/ Ajax/ ViewsFormBase.php, line 60
Class
- ViewsFormBase
- Provides a base class for Views UI AJAX forms.
Namespace
Drupal\views_ui\Form\AjaxCode
protected function setType($type) {
if ($type) {
$this->type = $type;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.