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

Created on 26 March 2024, 3 months ago
Updated 28 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 performance_test.php

https://git.drupalcode.org/project/simple_sitemap/-/blob/4.x-dev/tests/s...
https://git.drupalcode.org/project/simple_sitemap/-/blob/4.x-dev/tests/s...

Proposed resolution

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

📌 Task
Status

Needs work

Version

4.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