public function UrlAliasFixtures::sampleUrlAliases

Returns an array of URL aliases for testing.

Return value

array of URL alias definitions.

File

drupal/core/modules/system/lib/Drupal/system/Tests/Path/UrlAliasFixtures.php, line 48

Class

UrlAliasFixtures
Utility methods to generate sample data, database configuration, etc.

Namespace

Drupal\system\Tests\Path

Code

public function sampleUrlAliases() {
  return array(
    array(
      'source' => 'node/1',
      'alias' => 'alias_for_node_1_en',
      'langcode' => 'en',
    ),
    array(
      'source' => 'node/2',
      'alias' => 'alias_for_node_2_en',
      'langcode' => 'en',
    ),
    array(
      'source' => 'node/1',
      'alias' => 'alias_for_node_1_fr',
      'langcode' => 'fr',
    ),
    array(
      'source' => 'node/1',
      'alias' => 'alias_for_node_1_und',
      'langcode' => 'und',
    ),
  );
}