FILE_STATUS_PERMANENT
Same name in other branches
- 7.x 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
Code
const FILE_STATUS_PERMANENT = 1;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.