Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
migrate_plus
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
migrate_plus
Commits
0cde13a2
Commit
0cde13a2
authored
3 years ago
by
Joachim Noreiko
Committed by
Ivan Doroshenko
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed undocumented config properties for entity_lookup process plugin.
parent
6cbcd18b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/migrate/process/EntityLookup.php
+19
-3
19 additions, 3 deletions
src/Plugin/migrate/process/EntityLookup.php
with
19 additions
and
3 deletions
src/Plugin/migrate/process/EntityLookup.php
+
19
−
3
View file @
0cde13a2
...
@@ -14,13 +14,29 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
...
@@ -14,13 +14,29 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
/**
/**
* This plugin looks for existing entities.
* This plugin looks for existing entities.
*
*
* In its most simple form, this plugin needs no configuration. However, if the
* In its most simple form, this plugin needs no configuration, and determines
* lookup properties cannot be determined through introspection, define them via
* the configuration automatically. This requires the migration's process to
* configuration.
* define a default value for the destination entity's bundle key, and the
* destination field this plugin is on to be a supported type.
*
*
* Available configuration keys:
* Available configuration keys:
* - entity_type: (optional) The ID of the entity type to query for.
* - value_key: (optional) The name of the entity field on which the source
* value will be queried. If omitted, defaults to one of the following
* depending on the destination field type:
* - entity_reference: The entity label key.
* - file: The uri field.
* - image: The uri field.
* - bundle_key: (optional) The name of the bundle field on the entity type
* being queried.
* - bundle: (optional) The value to query for the bundle.
* - access_check: (optional) Indicates if access to the entity for this user
* - access_check: (optional) Indicates if access to the entity for this user
* will be checked. Default is true.
* will be checked. Default is true.
* - ignore_case: (optional) Whether to ignore case in the query. Defaults to
* true.
* - destination_field: (optional) If specified, and if the plugin's source
* value is an array, the result array's items will be themselves arrays of
* the form [destination_field => ENTITY_ID].
*
*
* @codingStandardsIgnoreStart
* @codingStandardsIgnoreStart
*
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment