format_size() is deprecated and will be removed in Drupal 11

Created on 7 February 2024, 10 months ago
Updated 11 July 2024, 4 months ago

Problem/Motivation

Drupal 10.2.0 has deprecated the format_size() function and will remove it once Drupal 11 is released.

See the changelog
https://www.drupal.org/node/2999981

This module calls that function in a number of places. For instance,

https://git.drupalcode.org/project/webform/-/blob/6.2.x/includes/webform...

Proposed resolution

Use \Drupal\Core\StringTranslation\ByteSizeMarkup::create($size, $langcode) instead.

📌 Task
Status

Fixed

Version

6.2

Component

Code

Created by

🇦🇺Australia mingsong 🇦🇺

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024