You are here

public function NameTestTrait::mapAssoc in Name Field 8

Forms an associative array from a linear array.

Parameters

array $values: The arrays to combine.

Return value

array The combined array.

1 call to NameTestTrait::mapAssoc()
NameAutocompleteTest::testAutocomplete in tests/src/Kernel/NameAutocompleteTest.php
Tests the service.

File

tests/src/Functional/NameTestTrait.php, line 60

Class

NameTestTrait
Common testing traits.

Namespace

Drupal\Tests\name\Functional

Code

public function mapAssoc(array $values) {
  return array_combine($values, $values);
}