function TestSearchPage::__construct

Same name in other branches
  1. 8.9.x core/modules/search/tests/src/Unit/SearchPageRepositoryTest.php \Drupal\Tests\search\Unit\TestSearchPage::__construct()
  2. 10 core/modules/search/tests/src/Unit/SearchPageRepositoryTest.php \Drupal\Tests\search\Unit\TestSearchPage::__construct()
  3. 11.x core/modules/search/tests/src/Unit/SearchPageRepositoryTest.php \Drupal\Tests\search\Unit\TestSearchPage::__construct()

Overrides ConfigEntityBase::__construct

File

core/modules/search/tests/src/Unit/SearchPageRepositoryTest.php, line 279

Class

TestSearchPage

Namespace

Drupal\Tests\search\Unit

Code

public function __construct(array $values) {
    foreach ($values as $key => $value) {
        $this->{$key} = $value;
    }
}

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