public static function Unicode::setStatus

Sets the value for multibyte support status for the current enviroment.

The following status keys are supported:

Parameters

int $status: The new status of multibyte support.

3 calls to Unicode::setStatus()
UnicodeTest::testStatus in drupal/core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php
Tests Unicode::getStatus() and Unicode::setStatus().
UnicodeTest::testStrtolower in drupal/core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php
Tests Unicode::strtolower().
UnicodeTest::testStrtoupper in drupal/core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php
Tests Unicode::strtoupper().

File

drupal/core/lib/Drupal/Component/Utility/Unicode.php, line 130
Contains \Drupal\Component\Utility\Unicode.

Class

Unicode
Provides Unicode-related conversions and operations.

Namespace

Drupal\Component\Utility

Code

public static function setStatus($status) {
  if (!in_array($status, array(
    static::STATUS_SINGLEBYTE,
    static::STATUS_MULTIBYTE,
    static::STATUS_ERROR,
  ))) {
    throw new \InvalidArgumentException('Invalid status value for unicode support.');
  }
  static::$status = $status;
}