function ViewsFormBase::setID

Same name and namespace in other branches
  1. 11.x 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.

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.