You are here

protected function ExposedFormTest::getExpectedExposedFormId in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/views/src/Tests/Plugin/ExposedFormTest.php \Drupal\views\Tests\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.

2 calls to ExposedFormTest::getExpectedExposedFormId()
ExposedFormTest::testExposedBlock in core/modules/views/src/Tests/Plugin/ExposedFormTest.php
Tests the exposed block functionality.
ExposedFormTest::testExposedFormRender in core/modules/views/src/Tests/Plugin/ExposedFormTest.php
Tests the exposed form markup.

File

core/modules/views/src/Tests/Plugin/ExposedFormTest.php, line 283
Contains \Drupal\views\Tests\Plugin\ExposedFormTest.

Class

ExposedFormTest
Tests exposed forms functionality.

Namespace

Drupal\views\Tests\Plugin

Code

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