LegacyMigrateUrlAliasTest::$stubMigration
Same name in this branch
- 8.9.x core/modules/path/tests/src/Kernel/Migrate/d7/LegacyMigrateUrlAliasTest.php \Drupal\Tests\path\Kernel\Migrate\d7\LegacyMigrateUrlAliasTest::stubMigration
The legacy stub migration to use.
Type: array
File
-
core/
modules/ path/ tests/ src/ Kernel/ Migrate/ d6/ LegacyMigrateUrlAliasTest.php, line 22
Class
- LegacyMigrateUrlAliasTest
- Tests legacy URL alias migration.
Namespace
Drupal\Tests\path\Kernel\Migrate\d6Code
protected $stubMigration = [
'id' => 'd6_url_alias',
'label' => 'URL aliases',
'migration_tags' => [
0 => 'Drupal 6',
1 => 'Content',
],
'source' => [
'plugin' => 'd6_url_alias',
'constants' => [
'slash' => '/',
],
],
'process' => [
'source' => [
'plugin' => 'concat',
'source' => [
0 => 'constants/slash',
1 => 'src',
],
],
'alias' => [
'plugin' => 'concat',
'source' => [
0 => 'constants/slash',
1 => 'dst',
],
],
'langcode' => [
'plugin' => 'd6_url_alias_language',
'source' => 'language',
],
'node_translation' => [
0 => [
'plugin' => 'explode',
'source' => 'src',
'delimiter' => '/',
],
1 => [
'plugin' => 'extract',
'default' => 'INVALID_NID',
'index' => [
0 => 1,
],
],
2 => [
'plugin' => 'migration_lookup',
'migration' => 'd6_node_translation',
],
],
],
'destination' => [
'plugin' => 'url_alias',
],
];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.