You are here

protected function ExposedFormTest::getExpectedExposedFormId in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php \Drupal\Tests\views\Functional\Plugin\ExposedFormTest::getExpectedExposedFormId()
  2. 9 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.

File

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

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);
}