Skip to content
Snippets Groups Projects
Commit 36ea4d33 authored by Gabor Hojtsy's avatar Gabor Hojtsy
Browse files

Issue #2933773 by masipila, quietone: Merge handbook documentation to API:...

Issue #2933773 by masipila, quietone: Merge handbook documentation to API: skip_on_empty process plugin
parent ed35f803
No related branches found
No related tags found
No related merge requests found
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
* - process: Prevents further processing of the input property when the value * - process: Prevents further processing of the input property when the value
* is empty. * is empty.
* - message: (optional) A message to be logged in the {migrate_message_*} table * - message: (optional) A message to be logged in the {migrate_message_*} table
* for this row. Messages are only logged for the 'row' skip level. If not * for this row. Messages are only logged for the 'row' method. If not set,
* set, nothing is logged in the message table. * nothing is logged in the message table.
* *
* Examples: * Examples:
* *
...@@ -33,11 +33,10 @@ ...@@ -33,11 +33,10 @@
* plugin: skip_on_empty * plugin: skip_on_empty
* method: row * method: row
* source: field_name * source: field_name
* message: 'Field field_name is missed' * message: 'Field field_name is missing'
* @endcode * @endcode
* * If 'field_name' is empty, the entire row is skipped and the message 'Field
* If field_name is empty, skips the entire row and the message 'Field * field_name is missing' is logged in the message table.
* field_name is missed' is logged in the message table.
* *
* @code * @code
* process: * process:
...@@ -47,12 +46,13 @@ ...@@ -47,12 +46,13 @@
* method: process * method: process
* source: parent * source: parent
* - * -
* plugin: migration * plugin: migration_lookup
* migration: d6_taxonomy_term * migration: d6_taxonomy_term
* @endcode * @endcode
* * If 'parent' is empty, any further processing of the property is skipped and
* If parent is empty, any further processing of the property is skipped - thus, * the next process plugin (migration_lookup) will not be run. Combining
* the next plugin (migration) will not be run. * skip_on_empty and migration_lookup is a typical process pipeline combination
* for hierarchical entities where the root entity does not have a parent.
* *
* @see \Drupal\migrate\Plugin\MigrateProcessInterface * @see \Drupal\migrate\Plugin\MigrateProcessInterface
* *
......
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