public function UrlAliasFixtures::sampleUrlAliases in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Path/UrlAliasFixtures.php \Drupal\system\Tests\Path\UrlAliasFixtures::sampleUrlAliases()
Returns an array of URL aliases for testing.
Return value
array of URL alias definitions.
File
- core/
modules/ system/ src/ Tests/ Path/ UrlAliasFixtures.php, line 53 - Contains \Drupal\system\Tests\Path\UrlAliasFixtures.
Class
- UrlAliasFixtures
- Utility methods to generate sample data, database configuration, etc.
Namespace
Drupal\system\Tests\PathCode
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',
),
);
}