diff --git a/core/modules/migrate/src/Entity/Migration.php b/core/modules/migrate/src/Entity/Migration.php index 2c14c3a..8a9ec77 100644 --- a/core/modules/migrate/src/Entity/Migration.php +++ b/core/modules/migrate/src/Entity/Migration.php @@ -410,8 +410,8 @@ public function setProcess(array $process) { /** * {@inheritdoc} */ - public function setProcessOfProperty($field_name, $process) { - $this->process[$field_name] = $process; + public function setProcessOfProperty($field_name, $process_of_property) { + $this->process[$field_name] = $process_of_property; return $this; } diff --git a/core/modules/migrate/src/Entity/MigrationInterface.php b/core/modules/migrate/src/Entity/MigrationInterface.php index fc575a2..a03f583 100644 --- a/core/modules/migrate/src/Entity/MigrationInterface.php +++ b/core/modules/migrate/src/Entity/MigrationInterface.php @@ -180,15 +180,20 @@ public function setMigrationResult($result); public function getMigrationResult(); /** - * Get the current configuration describing the process plugins. + * Get the normalized process configuration describing the process plugins. + * + * The process configuration is always normalized. All shorthand processing + * will be expanded into their full representations. + * + * @see https://www.drupal.org/node/2129651#get-shorthand * * @return array - * The configuration describing the process plugins. + * The normalized configuration describing the process plugins. */ public function getProcess(); /** - * Set the current configuration describing the process plugins. + * Set the entire process configuration describing the process plugins. * * @param array $process * The configuration describing the process plugins. @@ -200,9 +205,12 @@ public function setProcess(array $process); /** * Set the process for an individual destination field. * + * This method allows you to set the processing for an individual destination + * field within the full process configuration. + * * @param string $field_name * The field name of which to set the process. - * @param mixed $process + * @param mixed $process_of_property * A valid process value, array or string. * * @return $this @@ -210,15 +218,15 @@ public function setProcess(array $process); * * @see Drupal\migrate_drupal\Plugin\migrate\load\LoadEntity::processLinkField(). */ - public function setProcessOfProperty($field_name, $process); + public function setProcessOfProperty($field_name, $process_of_property); /** * Merge the process arrays for an individual field. * * @param string $field_name - * The field name of which to set the process. + * The field name of which to merge the process. * @param array $process - * An array of process data. + * An array of process data to be merged. * * @return $this * The migration entity.