Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
03355b6e
Commit
03355b6e
authored
May 09, 2021
by
Nathaniel Catchpole
Browse files
Issue
#3212539
by n4r3n, Wim Leers: Map all Link module's fieldformatters from D7 to D8/D9
(cherry picked from commit
5c952d4a
)
parent
928fee14
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/modules/link/src/Plugin/migrate/field/d7/LinkField.php
View file @
03355b6e
...
...
@@ -28,6 +28,16 @@ class LinkField extends D6LinkField {
public
function
getFieldFormatterMap
()
{
return
[
'link_default'
=>
'link'
,
'link_title_plain'
=>
'link'
,
'link_host'
=>
'link'
,
'link_url'
=>
'link'
,
'link_plain'
=>
'link'
,
'link_absolute'
=>
'link'
,
'link_domain'
=>
'link'
,
'link_no_protocol'
=>
'link'
,
'link_short'
=>
'link'
,
'link_label'
=>
'link'
,
'link_separate'
=>
'link_separate'
,
];
}
...
...
core/modules/migrate_drupal/tests/src/Kernel/d7/FieldDiscoveryTest.php
View file @
03355b6e
...
...
@@ -211,6 +211,16 @@ public function addAllFieldProcessesAltersData() {
],
'link_field'
=>
[
'link_default'
=>
'link'
,
'link_title_plain'
=>
'link'
,
'link_host'
=>
'link'
,
'link_url'
=>
'link'
,
'link_plain'
=>
'link'
,
'link_absolute'
=>
'link'
,
'link_domain'
=>
'link'
,
'link_no_protocol'
=>
'link'
,
'link_short'
=>
'link'
,
'link_label'
=>
'link'
,
'link_separate'
=>
'link_separate'
,
],
'entityreference'
=>
[
'entityreference_label'
=>
'entity_reference_label'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment