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