You are here

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:

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\Utility

Code

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);
}