function ExposedFormTest::getExpectedExposedFormId

Same name in other branches
  1. 9 core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php \Drupal\Tests\views\Functional\Plugin\ExposedFormTest::getExpectedExposedFormId()
  2. 8.9.x core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php \Drupal\Tests\views\Functional\Plugin\ExposedFormTest::getExpectedExposedFormId()
  3. 11.x core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php \Drupal\Tests\views\Functional\Plugin\ExposedFormTest::getExpectedExposedFormId()

Returns a views exposed form ID.

Parameters

\Drupal\views\ViewExecutable $view: The view to create an ID for.

Return value

string The form ID.

1 call to ExposedFormTest::getExpectedExposedFormId()
ExposedFormTest::testExposedBlock in core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php
Tests the exposed block functionality.

File

core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php, line 484

Class

ExposedFormTest
Tests exposed forms functionality.

Namespace

Drupal\Tests\views\Functional\Plugin

Code

protected function getExpectedExposedFormId(ViewExecutable $view) {
    return Html::cleanCssIdentifier('views-exposed-form-' . $view->storage
        ->id() . '-' . $view->current_display);
}

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