protected property LegacyMigrateUrlAliasTest::$stubMigration in Drupal 8
Same name in this branch
- 8 core/modules/path/tests/src/Kernel/Migrate/d6/LegacyMigrateUrlAliasTest.php \Drupal\Tests\path\Kernel\Migrate\d6\LegacyMigrateUrlAliasTest::stubMigration
- 8 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',
],
];