Chi created an issue. See original summary.
Even if #2157945: Deprecate format_size() and use Drupal\Core\StringTranslation\ByteSizeMarkup instead gets commited before Drupal 8.8 we should use format_size function as long as Drupal 8.7 is supported.
format_size
Issue #3087368 Add 'format_size' filter
Automatically closed - issue fixed for 2 weeks with no activity.
That can be backported to 8.x-2.x branch.
Issue #3087368: Add format_size Twig filter
Comments
Comment #2
andypostComment #3
chi commentedEven if #2157945: Deprecate format_size() and use Drupal\Core\StringTranslation\ByteSizeMarkup instead gets commited before Drupal 8.8 we should use
format_sizefunction as long as Drupal 8.7 is supported.Comment #4
chi commentedComment #6
chi commentedComment #8
chi commentedThat can be backported to 8.x-2.x branch.
Comment #10
chi commented