function ViewsForm::getBaseFormId

Same name in other branches
  1. 9 core/modules/views/src/Form/ViewsForm.php \Drupal\views\Form\ViewsForm::getBaseFormId()
  2. 8.9.x core/modules/views/src/Form/ViewsForm.php \Drupal\views\Form\ViewsForm::getBaseFormId()
  3. 10 core/modules/views/src/Form/ViewsForm.php \Drupal\views\Form\ViewsForm::getBaseFormId()

Returns a string for the form's base ID.

Return value

string The string identifying the form's base ID.

2 calls to ViewsForm::getBaseFormId()
ViewsForm::buildForm in core/modules/views/src/Form/ViewsForm.php
Form constructor.
ViewsForm::getFormId in core/modules/views/src/Form/ViewsForm.php
Returns a unique string identifying the form.

File

core/modules/views/src/Form/ViewsForm.php, line 115

Class

ViewsForm
Provides a base class for single- or multistep view forms.

Namespace

Drupal\views\Form

Code

public function getBaseFormId() {
    $parts = [
        'views_form',
        $this->viewId,
        $this->viewDisplayId,
    ];
    return implode('_', $parts);
}

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