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
cd58e45f
Commit
cd58e45f
authored
3 years ago
by
Ivan Doroshenko
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3263893
by Matroskeen: EntityGenerate - document configuration properties
parent
0cde13a2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!44
Issue #3263893: EntityGenerate - document configuration properties
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/migrate/process/EntityGenerate.php
+14
-10
14 additions, 10 deletions
src/Plugin/migrate/process/EntityGenerate.php
with
14 additions
and
10 deletions
src/Plugin/migrate/process/EntityGenerate.php
+
14
−
10
View file @
cd58e45f
...
...
@@ -11,25 +11,23 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* This plugin generates entities within the process plugin.
*
* @MigrateProcessPlugin(
* id = "entity_generate"
* )
*
* @see EntityLookup
*
* All the configuration from the lookup plugin applies here. In its most
* simple form, this plugin needs no configuration. If there are fields on the
* generated entity that are required or need some value, their values can be
* provided via values and/or default_values configuration options.
*
* Example usage with values and default_values configuration:
* Available configuration keys:
* - default_values: (optional) A keyed array of default static values to be
* used for the generated entity.
* - values: (optional) A keyed array of values to be used for the generated
* entity. It supports source and destination fields as you would normally use
* in a process pipeline.
*
* Example:
* @code
* destination:
* plugin: 'entity:node'
* process:
* type:
* plugin: default_value
* default_value: page
* foo: bar
* field_tags:
* plugin: entity_generate
...
...
@@ -40,6 +38,12 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
* field_long_description: some_source_field
* field_foo: '@foo'
* @endcode
*
* @see \Drupal\migrate_plus\Plugin\migrate\process\EntityLookup
*
* @MigrateProcessPlugin(
* id = "entity_generate"
* )
*/
class
EntityGenerate
extends
EntityLookup
{
...
...
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