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

Created on 26 March 2024, 3 months ago
Updated 27 March 2024, 3 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 editor_file.admin.inc

https://git.drupalcode.org/project/editor_file/-/blob/2.x/editor_file.ad...

Proposed resolution

Use \Drupal\Core\StringTranslation\ByteSizeMarkup::create($size, $langcode) instead.
It should be compatible with all Drupal 10 versions.

📌 Task
Status

Needs review

Version

2.0

Component

Code

Created by

🇺🇦Ukraine dburiak

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