constant FILE_STATUS_PERMANENT in Drupal 8
Same name and namespace in other branches
- 6 includes/file.inc \FILE_STATUS_PERMANENT
- 7 includes/file.inc \FILE_STATUS_PERMANENT
- 9 core/includes/file.inc \FILE_STATUS_PERMANENT
Indicates that the file is permanent and should not be deleted.
Temporary files older than the system.file.temporary_maximum_age configuration value will be, if clean-up not disabled, removed during cron runs, but permanent files will not be removed during the file garbage collection process.
Related topics
23 uses of FILE_STATUS_PERMANENT
- AccessTest::testFileCacheability in core/
modules/ file/ tests/ src/ Kernel/ AccessTest.php - Tests cacheability metadata.
- ContentTranslationSyncImageTest::testImageFieldSync in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationSyncImageTest.php - Tests image field field synchronization.
- File::isPermanent in core/
modules/ file/ src/ Entity/ File.php - Returns TRUE if the file is permanent.
- File::setPermanent in core/
modules/ file/ src/ Entity/ File.php - Sets the file status to permanent.
- FileListingTest::createFile in core/
modules/ file/ tests/ src/ Functional/ FileListingTest.php - Creates and saves a test file.
File
- core/
includes/ file.inc, line 94 - API for handling file uploads and server file management.
Code
const FILE_STATUS_PERMANENT = 1;