public function TestSearchPage::__construct in Drupal 8
Same name and namespace in other branches
- 9 core/modules/search/tests/src/Unit/SearchPageRepositoryTest.php \Drupal\Tests\search\Unit\TestSearchPage::__construct()
Constructs an Entity object.
Parameters
array $values: An array of values to set, keyed by property name. If the entity type has bundles, the bundle key has to be specified.
string $entity_type: The type of the entity to create.
Overrides ConfigEntityBase::__construct
File
- core/
modules/ search/ tests/ src/ Unit/ SearchPageRepositoryTest.php, line 279 - Contains \Drupal\Tests\search\Unit\SearchPageRepositoryTest.
Class
Namespace
Drupal\Tests\search\UnitCode
public function __construct(array $values) {
foreach ($values as $key => $value) {
$this->{$key} = $value;
}
}