public static function Unicode::setStatus in Drupal 8
Sets the value for multibyte support status for the current environment.
The following status keys are supported:
- \Drupal\Component\Utility\Unicode::STATUS_MULTIBYTE Full unicode support using an extension.
- \Drupal\Component\Utility\Unicode::STATUS_SINGLEBYTE Standard PHP (emulated) unicode support.
- \Drupal\Component\Utility\Unicode::STATUS_ERROR An error occurred. No unicode support.
Parameters
int $status: The new status of multibyte support.
Deprecated
in drupal:8.6.0 and is removed from drupal:9.0.0. In Drupal 9 there will be no way to set the status and in Drupal 8 this ability has been removed because mb_*() functions are supplied using Symfony's polyfill.
See also
https://www.drupal.org/node/2850048
1 call to Unicode::setStatus()
- UnicodeTest::testSetStatus in core/
tests/ Drupal/ Tests/ Component/ Utility/ UnicodeTest.php - @group legacy @expectedDeprecation \Drupal\Component\Utility\Unicode::setStatus() is deprecated in Drupal 8.6.0 and will be removed before Drupal 9.0.0. In Drupal 9 there will be no way to set the status and in Drupal 8 this ability has been removed…
File
- core/
lib/ Drupal/ Component/ Utility/ Unicode.php, line 134
Class
- Unicode
- Provides Unicode-related conversions and operations.
Namespace
Drupal\Component\UtilityCode
public static function setStatus($status) {
@trigger_error('\\Drupal\\Component\\Utility\\Unicode::setStatus() is deprecated in Drupal 8.6.0 and will be removed before Drupal 9.0.0. In Drupal 9 there will be no way to set the status and in Drupal 8 this ability has been removed because mb_*() functions are supplied using Symfony\'s polyfill. See https://www.drupal.org/node/2850048.', E_USER_DEPRECATED);
}