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

Created on 7 February 2024, 5 months ago
Updated 13 June 2024, 13 days 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

Needs work

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.69.0 2024