diff --git a/src/Plugin/migrate/process/ParagraphsStripFieldPrefix.php b/src/Plugin/migrate/process/ParagraphsStripFieldPrefix.php index df63b7e..4d14623 100644 --- a/src/Plugin/migrate/process/ParagraphsStripFieldPrefix.php +++ b/src/Plugin/migrate/process/ParagraphsStripFieldPrefix.php @@ -10,7 +10,7 @@ use Drupal\paragraphs\Plugin\migrate\field\FieldCollection; /** - * If a string starts with the prefix 'field_', this plugin removes the prefix, otherwise does nothing. + * Remove 'field_' from the start of a string. * * @see \Drupal\migrate\Plugin\MigrateProcessInterface * @@ -30,8 +30,10 @@ public function transform($value, MigrateExecutableInterface $migrate_executable if (mb_substr($value, 0, FieldCollection::FIELD_COLLECTION_PREFIX_LENGTH) === 'field_') { return mb_substr($value, FieldCollection::FIELD_COLLECTION_PREFIX_LENGTH); - } else { + } + else { return $value; } } + }