diff --git a/core/modules/link/config/schema/link.schema.yml b/core/modules/link/config/schema/link.schema.yml index 9030331..aa7226a 100644 --- a/core/modules/link/config/schema/link.schema.yml +++ b/core/modules/link/config/schema/link.schema.yml @@ -79,3 +79,8 @@ field.value.link: https: type: boolean label: 'If the Url should use a secure protocol' + attributes: + type: sequence + label: 'Link attributes' + sequence: + - type: string diff --git a/core/modules/migrate_drupal/src/Plugin/migrate/process/d6/CckLink.php b/core/modules/migrate_drupal/src/Plugin/migrate/process/d6/CckLink.php index 4cb59f0..d2ecd4b 100644 --- a/core/modules/migrate_drupal/src/Plugin/migrate/process/d6/CckLink.php +++ b/core/modules/migrate_drupal/src/Plugin/migrate/process/d6/CckLink.php @@ -32,8 +32,6 @@ public function transform($value, MigrateExecutable $migrate_executable, Row $ro // Massage the values into the correct form for the link. $route['options']['attributes'] = $attributes; - // External links do not have a route name. - $route['options']['external'] = empty($route['route_name']); $route['title'] = $title; return $route; } diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateCckFieldValuesTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateCckFieldValuesTest.php index 7920277..ffbead0 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateCckFieldValuesTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateCckFieldValuesTest.php @@ -159,7 +159,6 @@ public function testCckFields() { $this->assertIdentical($node->field_test_link->title, 'Drupal project page'); $this->assertIdentical($node->field_test_link->route_parameters, []); $this->assertIdentical($node->field_test_link->options['attributes'], ['target' => '_blank']); - $this->assertIdentical($node->field_test_link->options['external'], TRUE); $planet_node = Node::load(3); $this->assertEqual($planet_node->field_multivalue->value, 33);