function ViewsFormBase::setID

Same name in other branches
  1. 9 core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php \Drupal\views_ui\Form\Ajax\ViewsFormBase::setID()
  2. 8.9.x core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php \Drupal\views_ui\Form\Ajax\ViewsFormBase::setID()
  3. 10 core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php \Drupal\views_ui\Form\Ajax\ViewsFormBase::setID()

Sets the ID for this form.

Parameters

string $id: The ID of the item this form is manipulating.

6 calls to ViewsFormBase::setID()
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.
ConfigHandlerExtra::__construct in core/modules/views_ui/src/Form/Ajax/ConfigHandlerExtra.php
Constructs a new ConfigHandlerExtra object.
ConfigHandlerGroup::getForm in core/modules/views_ui/src/Form/Ajax/ConfigHandlerGroup.php
Creates a new instance of this form.

... See full list

File

core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php, line 48

Class

ViewsFormBase
Provides a base class for Views UI AJAX forms.

Namespace

Drupal\views_ui\Form\Ajax

Code

protected function setID($id) {
    if ($id) {
        $this->id = $id;
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.