X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fmigrate%2Fsrc%2FPlugin%2Fmigrate%2Fprocess%2FSubstr.php;h=b8f5f497b8b3ae6fa86b5b59079165eeb1d728a5;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=4d49a3809b70884c454c075cf24b210fdcc69cf8;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/web/core/modules/migrate/src/Plugin/migrate/process/Substr.php b/web/core/modules/migrate/src/Plugin/migrate/process/Substr.php index 4d49a3809..b8f5f497b 100644 --- a/web/core/modules/migrate/src/Plugin/migrate/process/Substr.php +++ b/web/core/modules/migrate/src/Plugin/migrate/process/Substr.php @@ -6,14 +6,12 @@ use Drupal\migrate\ProcessPluginBase; use Drupal\migrate\MigrateExecutableInterface; use Drupal\migrate\Row; use Drupal\migrate\MigrateException; -use Drupal\Component\Utility\Unicode; /** * Returns a substring of the input value. * * The substr process plugin returns the portion of the input value specified by - * the start and length parameters. This is a wrapper around - * \Drupal\Component\Utility\Unicode::substr(). + * the start and length parameters. This is a wrapper around mb_substr(). * * Available configuration keys: * - start: (optional) The returned string will start this many characters after @@ -85,7 +83,7 @@ class Substr extends ProcessPluginBase { } // Use optional start or length to return a portion of $value. - $new_value = Unicode::substr($value, $start, $length); + $new_value = mb_substr($value, $start, $length); return $new_value; }