By alexpott on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.6.x
Issue links:
Description:
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()
\Drupal\Component\Utility\Unicode::setStatus() is deprecated and will be removed in Drupal 9. In Drupal 8 it's primary purpose was for testing. Since Symfony's polyfill is available it is a pointless method.
Impacts:
Module developers
Themers
Comments
The following details the changes from Drupal 7