function MigrateExecutable::formatSize
Same name and namespace in other branches
- 10 core/modules/migrate/src/MigrateExecutable.php \Drupal\migrate\MigrateExecutable::formatSize()
- 8.9.x core/modules/migrate/src/MigrateExecutable.php \Drupal\migrate\MigrateExecutable::formatSize()
Generates a string representation for the given byte count.
Parameters
int $size: A size in bytes.
Return value
string A translated string representation of the size.
File
-
core/
modules/ migrate/ src/ MigrateExecutable.php, line 625
Class
- MigrateExecutable
- Defines a migrate executable class.
Namespace
Drupal\migrateCode
protected function formatSize($size) {
return format_size($size);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.