X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fmigrate%2Fsrc%2FPlugin%2Fmigrate%2Fprocess%2FSubstr.php;fp=web%2Fcore%2Fmodules%2Fmigrate%2Fsrc%2FPlugin%2Fmigrate%2Fprocess%2FSubstr.php;h=b8f5f497b8b3ae6fa86b5b59079165eeb1d728a5;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=4d49a3809b70884c454c075cf24b210fdcc69cf8;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;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; }