function MigrateExecutable::formatSize
Same name in other branches
- 9 core/modules/migrate/src/MigrateExecutable.php \Drupal\migrate\MigrateExecutable::formatSize()
- 10 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.
1 call to MigrateExecutable::formatSize()
- MigrateExecutable::memoryExceeded in core/
modules/ migrate/ src/ MigrateExecutable.php - Tests whether we've exceeded the desired memory threshold.
1 method overrides MigrateExecutable::formatSize()
- TestMigrateExecutable::formatSize in core/
modules/ migrate/ tests/ src/ Unit/ TestMigrateExecutable.php - Generates a string representation for the given byte count.
File
-
core/
modules/ migrate/ src/ MigrateExecutable.php, line 578
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.