You are here

protected function ExposedFormTest::getExpectedExposedFormId in Drupal 8

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

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 387

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