22 calls to format_size() in Drupal 10
- bartik_preprocess_image_widget in core/
themes/ bartik/ bartik.theme - Implements hook_preprocess_image_widget().
- editor_image_upload_settings_form in core/
modules/ editor/ editor.admin.inc - Subform constructor to configure the text editor's image upload settings.
- FileFieldValidateTest::testFileMaxSize in core/
modules/ file/ tests/ src/ Functional/ FileFieldValidateTest.php - Tests the max file size validator.
- FileItem::fieldSettingsForm in core/
modules/ file/ src/ Plugin/ Field/ FieldType/ FileItem.php - Returns a form for the field-level settings.
- FileSize::render in core/
modules/ views/ src/ Plugin/ views/ field/ FileSize.php - FileSize::viewElements in core/
modules/ file/ src/ Plugin/ Field/ FieldFormatter/ FileSize.php - Builds a renderable array for a field value.
- FileTokenReplaceTest::testFileTokenReplacement in core/
modules/ file/ tests/ src/ Functional/ FileTokenReplaceTest.php - Creates a file, then tests the tokens generated from it.
- FileUploadHandlerTest::testFileSaveUploadSingleErrorFormSize in core/
modules/ file/ tests/ src/ Kernel/ FileUploadHandlerTest.php - Tests file size upload errors.
- FileWidgetAjaxController::progress in core/
modules/ file/ src/ Controller/ FileWidgetAjaxController.php - Returns the progress status for a file upload process.
- file_save_upload in core/
modules/ file/ file.module - Saves file uploads to a new location.
- file_tokens in core/
modules/ file/ file.module - Implements hook_tokens().
- file_validate_size in core/
modules/ file/ file.module - Checks that the file's size is below certain limits.
- FormAjaxSubscriber::formatSize in core/
lib/ Drupal/ Core/ Form/ EventSubscriber/ FormAjaxSubscriber.php - Wraps format_size()
- MigrateExecutable::formatSize in core/
modules/ migrate/ src/ MigrateExecutable.php - Generates a string representation for the given byte count.
- seven_preprocess_image_widget in core/
themes/ seven/ seven.theme - Implements hook_preprocess_image_widget().
- SizeTest::testCommonFormatSize in core/
tests/ Drupal/ KernelTests/ Core/ Common/ SizeTest.php - Checks that format_size() returns the expected string.
- stable_preprocess_image_widget in core/
themes/ stable/ stable.theme - Implements hook_preprocess_image_widget().
- system_requirements in core/
modules/ system/ system.install - Implements hook_requirements().
- TableFormatter::viewElements in core/
modules/ file/ src/ Plugin/ Field/ FieldFormatter/ TableFormatter.php - Builds a renderable array for a field value.
- template_preprocess_file_link in core/
modules/ file/ file.module - Prepares variables for file link templates.
- template_preprocess_file_upload_help in core/
modules/ file/ file.field.inc - Prepares variables for file upload help text templates.
- umami_preprocess_image_widget in core/
profiles/ demo_umami/ themes/ umami/ umami.theme - Implements hook_preprocess_image_widget().