9 calls to file_save_data() in Drupal 9
- FileFieldWidgetTest::createTemporaryFile in core/
modules/ file/ tests/ src/ Functional/ FileFieldWidgetTest.php - Creates a temporary file, for a specific user.
- FileItem::generateSampleValue in core/
modules/ file/ src/ Plugin/ Field/ FieldType/ FileItem.php - Generates placeholder field values.
- SaveDataTest::testExistingError in core/
modules/ file/ tests/ src/ Kernel/ SaveDataTest.php - Tests that file_save_data() fails overwriting an existing file.
- SaveDataTest::testExistingRename in core/
modules/ file/ tests/ src/ Kernel/ SaveDataTest.php - Tests file_save_data() when renaming around an existing file.
- SaveDataTest::testExistingReplace in core/
modules/ file/ tests/ src/ Kernel/ SaveDataTest.php - Tests file_save_data() when replacing an existing file.
- SaveDataTest::testWithFilename in core/
modules/ file/ tests/ src/ Kernel/ SaveDataTest.php - Tests the file_save_data() function when a filename is provided.
- SaveDataTest::testWithoutFilename in core/
modules/ file/ tests/ src/ Kernel/ SaveDataTest.php - Tests the file_save_data() function when no filename is provided.
- system_retrieve_file in core/
modules/ system/ system.module - Attempts to get a file using Guzzle HTTP client and to store it locally.
- UsageTest::createTempFiles in core/
modules/ file/ tests/ src/ Kernel/ UsageTest.php - Create files for all the possible combinations of age and status.