function Unicode::getStatus
Same name in other branches
- 9 core/lib/Drupal/Component/Utility/Unicode.php \Drupal\Component\Utility\Unicode::getStatus()
- 8.9.x core/lib/Drupal/Component/Utility/Unicode.php \Drupal\Component\Utility\Unicode::getStatus()
- 11.x core/lib/Drupal/Component/Utility/Unicode.php \Drupal\Component\Utility\Unicode::getStatus()
Gets the current status of unicode/multibyte support on this environment.
Return value
int The status of multibyte support. It can be one of:
- \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.
1 call to Unicode::getStatus()
- system_requirements in core/
modules/ system/ system.install - Implements hook_requirements().
File
-
core/
lib/ Drupal/ Component/ Utility/ Unicode.php, line 101
Class
- Unicode
- Provides Unicode-related conversions and operations.
Namespace
Drupal\Component\UtilityCode
public static function getStatus() {
switch (static::check()) {
case 'mb_strlen':
return Unicode::STATUS_SINGLEBYTE;
case '':
return Unicode::STATUS_MULTIBYTE;
}
return Unicode::STATUS_ERROR;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.