Same name and namespace in other branches
  1. 8.9.x core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php \Drupal\views_ui\Form\Ajax\ViewsFormBase::setType()
  2. 9 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.

... See full list

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\Ajax

Code

protected function setType($type) {
  if ($type) {
    $this->type = $type;
  }
}