Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!6781
Port Migrate field plugins to use attribute.
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Closed
Port Migrate field plugins to use attribute.
issue/drupal-3421020:3421020-convert-migratefield-plugin
into
11.x
Overview
12
Commits
2
Pipelines
4
Changes
23
All threads resolved!
Hide all comments
Closed
Port Migrate field plugins to use attribute.
Mohit Aghera
requested to merge
issue/drupal-3421020:3421020-convert-migratefield-plugin
into
11.x
Feb 27, 2024
Overview
12
Commits
2
Pipelines
4
Changes
23
All threads resolved!
Hide all comments
Closes
#3421020
0
0
Merge request reports
Compare
11.x
version 3
8b819745
Apr 5, 2024
version 2
3008e130
Apr 4, 2024
version 1
22fe496b
Feb 27, 2024
11.x (base)
and
latest version
latest version
31860536
2 commits,
Apr 5, 2024
version 3
8b819745
1 commit,
Apr 5, 2024
version 2
3008e130
1 commit,
Apr 4, 2024
version 1
22fe496b
1 commit,
Feb 27, 2024
23 files
+
222
−
222
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
23
core/modules/field/src/Plugin/migrate/field/d7/EntityReference.php
+
10
−
10
View file @ 31860536
Edit in single-file editor
Open in Web IDE
Show full file
@@ -2,23 +2,23 @@
namespace
Drupal\field\Plugin\migrate\field\d7
;
use
Drupal\migrate_drupal
\Attribute\MigrateField
;
use
Drupal\migrate_drupal
\Plugin\migrate\field\FieldPluginBase
;
// cspell:ignore entityreference
/**
* MigrateField plugin for Drupal 7 entity_reference fields.
*
* @MigrateField(
* id = "entityreference",
* type_map = {
* "entityreference" = "entity_reference",
* },
* core = {7},
* source_module = "entityreference",
* destination_module = "core"
* )
*/
#
[
MigrateField
(
id
:
'entityreference'
,
core
:
[
7
],
type_map
:
[
'entityreference'
=>
'entity_reference'
,
],
source_module
:
'entityreference'
,
destination_module
:
'core'
,
)]
class
EntityReference
extends
FieldPluginBase
{
/**
Loading