You are here

private function DomainConfigHomepageTest::getHomepages in Domain Access 8

Returns the expected homepage paths for each domain.

1 call to DomainConfigHomepageTest::getHomepages()
DomainConfigHomepageTest::testDomainConfigHomepage in domain_config/tests/src/Functional/DomainConfigHomepageTest.php
Tests that domain-specific homepage loading works.

File

domain_config/tests/src/Functional/DomainConfigHomepageTest.php, line 98

Class

DomainConfigHomepageTest
Tests the domain config system handling of home page routes.

Namespace

Drupal\Tests\domain_config\Functional

Code

private function getHomepages() {
  $homepages = [
    'example_com' => [
      'en' => 'node',
      'es' => 'node',
    ],
    'one_example_com' => [
      'en' => 'node/1',
      'es' => 'node',
    ],
    'two_example_com' => [
      'en' => 'node',
      'es' => 'node',
    ],
    'three_example_com' => [
      'en' => 'node',
      'es' => 'node',
    ],
    'four_example_com' => [
      'en' => 'node/2',
      'es' => 'node/2',
    ],
  ];
  return $homepages;
}