diff --git a/core/modules/migrate/src/Plugin/migrate/process/SkipOnEmpty.php b/core/modules/migrate/src/Plugin/migrate/process/SkipOnEmpty.php index acf40e4..6658eeb 100644 --- a/core/modules/migrate/src/Plugin/migrate/process/SkipOnEmpty.php +++ b/core/modules/migrate/src/Plugin/migrate/process/SkipOnEmpty.php @@ -12,18 +12,17 @@ * Skips processing the current row when the input value is empty. * * The skip_on_empty process plugin checks to see if the current input value - * is empty (empty string, NULL, FALSE, 0, '0', or an empty array). If so, the further - * processing of the property or the entire row (depending on the chosen method) - * is skipped and will not be migrated. + * is empty (empty string, NULL, FALSE, 0, '0', or an empty array). If so, the + * further processing of the property or the entire row (depending on the chosen + * method) is skipped and will not be migrated. * * Available configuration keys: * - method: (optional) level of skip. - * - row: Skips the entire row when an empty value is encountered. Useful when - * combined with a migration process plugin to check if a related item - * was previously migrated. + * - row: Skips the entire row when an empty value is encountered. Useful + * when combined with a migration process plugin to check if a related + * item was previously migrated. * - process: Skips the processing of the property when an empty value is - * encountered. Useful when migrating parent values, there is no need to - * set a destination value. + * encountered. * * Examples: * @@ -38,13 +37,9 @@ * - * plugin: skip_on_empty * method: row - * - - * plugin: extract - * index: - * - 1 * @endcode * - * If field_name is empty, skips the row process. + * If field_name is empty, skips the entire row. * * @code * process: @@ -58,36 +53,7 @@ * migration: d6_taxonomy_term * @endcode * - * If parent is empty, skips parent process but d6_taxonomy_term will be - * processed. - * - * Another example for process: - * - * @code - * process: - * book.pid: - * - - * plugin: skip_on_empty - * method: process - * source: plid - * - - * plugin: migration - * migration: d6_book - * @endcode - * - * or - * - * @code - * process: - * pid: - * - - * plugin: skip_on_empty - * method: process - * source: pid - * - - * plugin: migration - * migration: d6_comment - * @endcode + * If parent is empty, skips parent process. * * @see \Drupal\migrate\Plugin\MigrateProcessInterface *