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
56dfb25a
Commit
56dfb25a
authored
6 years ago
by
Ivo Van Geertruyen
Committed by
Lucas Hedding
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2902867
by mr.baileys, heddn: Documentation for skip_on_value
parent
d738eadb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/migrate/process/SkipOnValue.php
+37
-0
37 additions, 0 deletions
src/Plugin/migrate/process/SkipOnValue.php
with
37 additions
and
0 deletions
src/Plugin/migrate/process/SkipOnValue.php
+
37
−
0
View file @
56dfb25a
...
@@ -15,6 +15,43 @@ use Drupal\migrate\Row;
...
@@ -15,6 +15,43 @@ use Drupal\migrate\Row;
* @MigrateProcessPlugin(
* @MigrateProcessPlugin(
* id = "skip_on_value"
* id = "skip_on_value"
* )
* )
*
* Available configuration keys:
* - value: An single value or array of values against which the source value
* should be compared.
* - not_equals: (optional) If set, skipping occurs when values are not equal.
* - method: (optional) What to do if the input value is empty. Possible values:
* - row: Skips the entire row when an empty value is encountered.
* - process: Prevents further processing of the input property when the value
* is empty.
*
* Examples:
*
* Example usage with minimal configuration:
* @code
* type:
* plugin: skip_on_value
* source: content_type
* value: blog
* @endcode
*
* The above example will skip processing the input property if the content_type
* source field equals "blog".
*
* Example usage with full configuration:
* @code
* type:
* plugin: skip_on_value
* not_equals: true
* source: content_type
* method: row
* value:
* - article
* - testimonial
* @endcode
*
* The above example will skip processing any row for which the source row's
* content type field is not "article" or "testimonial".
*/
*/
class
SkipOnValue
extends
ProcessPluginBase
{
class
SkipOnValue
extends
ProcessPluginBase
{
...
...
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