Skip to content
Snippets Groups Projects
Commit 56dfb25a authored by Ivo  Van Geertruyen's avatar Ivo Van Geertruyen Committed by Lucas Hedding
Browse files

Issue #2902867 by mr.baileys, heddn: Documentation for skip_on_value

parent d738eadb
No related branches found
No related tags found
No related merge requests found
...@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment