Skip to content

Commit

Permalink
Ignore format_size code deprecation until Drupal 10.1 if end of life #…
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-cox committed Jan 11, 2024
1 parent 9b2d3b3 commit a601e03
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ function localgov_subsites_paragraphs_preprocess_paragraph(&$variables) {
if ($file_entity) {
$variables['documents'][$key] = [
'name' => $variables['content']['localgov_documents'][$key],
// FIXME: Replace with ByteSizeMarkup when Drupal 10.1 is end of life.
// @phpstan-ignore-next-line.
'size' => format_size($file_entity->getSize()),
];
}
Expand Down

0 comments on commit a601e03

Please sign in to comment.