From Use mb_* functions instead of Unicode::* methods
Drupal 8 ships with Symfony's mbstring polyfill which makes some methods in \Drupal\Component\Utility\Unicode obsolete.
Replace \Drupal\Component\Utility\Unicode::strlen() with mb_strlen()
Replace \Drupal\Component\Utility\Unicode::strtoupper() with mb_strtoupper()
Replace \Drupal\Component\Utility\Unicode::strtolower() with mb_strtolower()
Replace \Drupal\Component\Utility\Unicode::substr() with mb_substr()
Replace \Drupal\Component\Utility\Unicode::strpos() with mb_strpos()
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3041679-replace-unicode-depricated-2.patch | 2.46 KB | ameykinalekar |
Comments
Comment #2
ameykinalekar commentedPlease find attached patch for deprecated function
Comment #3
ameykinalekar commentedComment #4
aks22 commentedComment #6
nils.destoop commentedThx for the patch. I committed it to dev.
Comment #8
aks22 commented