protected function FormAjaxSubscriber::formatSize

protected FormAjaxSubscriber::formatSize($size)

Wraps format_size()

Return value

string The formatted size.

File

core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php, line 140

Class

FormAjaxSubscriber
Wraps AJAX form submissions that are triggered via an exception.

Namespace

Drupal\Core\Form\EventSubscriber

Code

protected function formatSize($size) {
  return format_size($size);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Form!EventSubscriber!FormAjaxSubscriber.php/function/FormAjaxSubscriber::formatSize/8.1.x