public function DomainTestTrait::getDomainsSorted in Domain Access 8
Returns an uncached list of all domains, sorted by weight.
Return value
array An array of domain entities.
2 calls to DomainTestTrait::getDomainsSorted()
- DomainListBuilderTest::getPaginatedDomains in domain/
tests/ src/ Functional/ DomainListBuilderTest.php - Returns an array of domains, paginated and sorted by weight.
- DomainListWeightTest::testDomainWeight in domain/
tests/ src/ Functional/ DomainListWeightTest.php - Basic test setup.
File
- domain/
tests/ src/ Traits/ DomainTestTrait.php, line 117
Class
- DomainTestTrait
- Contains helper classes for tests to set up various configuration.
Namespace
Drupal\Tests\domain\TraitsCode
public function getDomainsSorted() {
\Drupal::entityTypeManager()
->getStorage('domain')
->resetCache();
return \Drupal::entityTypeManager()
->getStorage('domain')
->loadMultipleSorted();
}