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 @@ -8,21 +8,24 @@ use Drupal\migrate\Row; /** - * Explodes the source value into an array of values. + * Splits the source string into an array of strings, using a delimiter. * - * The explode process plugin creates an array of strings, each of which is a - * substring formed by splitting the source on boundaries formed by the string - * delimiter. One use case is for building the theme and color configuration + * 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 + * Available configuration keys: * - source: The source string. * - limit: (optional) - * - If limit is set and positive, the returned array will contain a maximum of limit elements with the last element containing the rest of string. - * - If the limit parameter is negative, all components except the last -limit are returned. + * - If limit is set and positive, the returned array will contain a maximum + * of limit elements with the last element containing the rest of string. + * - If limit is set and negative, all components except the last -limit are + * returned. * - If the limit parameter is zero, then this is treated as 1. - * - delimiter: (optional) The boundary string. + * - delimiter: The boundary string. * * Example: * @@ -49,23 +52,7 @@ class Explode extends ProcessPluginBase { /** - * Performs the associated process. - * - * @param string $value - * The input string. - * @param \Drupal\migrate\MigrateExecutableInterface $migrate_executable - * The migration in which this process is being executed. - * @param \Drupal\migrate\Row $row - * The row from the source to process. - * @param string $destination_property - * The destination property currently worked on. This is only used together - * with the $row above. - * - * @return array - * The array of sub strings created by splitting the input on boundaries - * formed by the string delimiter. - * - * @throws \Drupal\migrate\MigrateException + * {@inheritdoc} */ public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) { if (is_string($value)) {