diff -u b/core/modules/migrate/src/Plugin/migrate/process/Explode.php b/core/modules/migrate/src/Plugin/migrate/process/Explode.php --- b/core/modules/migrate/src/Plugin/migrate/process/Explode.php +++ b/core/modules/migrate/src/Plugin/migrate/process/Explode.php @@ -13,10 +13,6 @@ * This plugin creates an array of strings by splitting the source parameter on * boundaries formed by the delimiter. * - * One use case is for building the theme and color configuration - * setting name from the Drupal 7 variable name. For example, to convert - * theme_bartik_settings to bartik.settings. - * * Available configuration keys: * - source: The source string. * - limit: (optional) @@ -31,17 +27,26 @@ * * @code * process: - * new_text_field: + * bar: * plugin: explode - * source: some_text_field - * limit: 100 - * delimiter: _ + * source: foo + * delimiter: / * @endcode * - * If limit is > PHP_INT_MAX it will be set to PHP_INT_MAX. + * If foo is "node/1", then bar will be ['node', '1']. The PHP equivalent of + * this would be: $bar = explode('/', $foo) + * + * @code + * process: + * bar: + * plugin: explode + * source: foo + * limit: 1 + * delimiter: / + * @endcode * - * The PHP equivalent of this would be: - * $destination['new_text_field'] = explode('_', $source['some_text_field'], 100) + * If foo is "node/1/edit", then bar will be ['node', '1/edit']. The PHP + * equivalent of this would be: $bar = explode('/', $foo) * * @see \Drupal\migrate\Plugin\MigrateProcessInterface *