function MigrateExecutable::formatSize

Same name and namespace in other branches
  1. 10 core/modules/migrate/src/MigrateExecutable.php \Drupal\migrate\MigrateExecutable::formatSize()
  2. 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\migrate

Code

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.