Bytes::ALLOWED_SUFFIXES
Same name in other branches
- 9 core/lib/Drupal/Component/Utility/Bytes.php \Drupal\Component\Utility\Bytes::ALLOWED_SUFFIXES
- 10 core/lib/Drupal/Component/Utility/Bytes.php \Drupal\Component\Utility\Bytes::ALLOWED_SUFFIXES
The allowed suffixes of a bytes string in lowercase.
See also
http://wikipedia.org/wiki/Kilobyte
File
-
core/
lib/ Drupal/ Component/ Utility/ Bytes.php, line 24
Class
- Bytes
- Provides helper methods for byte conversions.
Namespace
Drupal\Component\UtilityCode
const ALLOWED_SUFFIXES = [
'',
'b',
'byte',
'bytes',
'k',
'kb',
'kilobyte',
'kilobytes',
'm',
'mb',
'megabyte',
'megabytes',
'g',
'gb',
'gigabyte',
'gigabytes',
't',
'tb',
'terabyte',
'terabytes',
'p',
'pb',
'petabyte',
'petabytes',
'e',
'eb',
'exabyte',
'exabytes',
'z',
'zb',
'zettabyte',
'zettabytes',
'y',
'yb',
'yottabyte',
'yottabytes',
];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.