Skip to content
Snippets Groups Projects

Automated Project Update Bot fixes

@@ -277,8 +277,8 @@ class RemoteJSONAPI extends Remote {
$form_state->setError($element, t(
'The remote file is %filesize exceeding the maximum file size of %maxsize.',
[
'%filesize' => format_size($file_size),
'%maxsize' => format_size($max_size),
'%filesize' => \Drupal\Component\Utility\DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.2.0', fn() => \Drupal\Core\StringTranslation\ByteSizeMarkup::create($file_size), fn() => format_size($file_size)),
'%maxsize' => \Drupal\Component\Utility\DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.2.0', fn() => \Drupal\Core\StringTranslation\ByteSizeMarkup::create($max_size), fn() => format_size($max_size)),
]
));
return;
Loading