Unicode::setStatus

public static Unicode::setStatus($status)

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.

File

core/lib/Drupal/Component/Utility/Unicode.php, line 127

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;
}
doc_Drupal
2016-10-29 09:50:23
Comments
Leave a Comment

Please login to continue.