By kim.pepper on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.8.x
Introduced in version:
8.8.0-alpha1
Description:
file_directory_temp()is deprecated and moved to the FileSystem service.system.file:path.temporary(thepath.temporarykey-value pair insystem.file) is now deprecated.
Before:
file_directory_temp();
After:
\Drupal::service('file_system')->getTempDirectory();
The following lines are now in default.settings.php
/**
* Temporary file path:
*
* A local file system path where temporary files will be stored. This directory
* must be absolute, outside of the Drupal installation directory and not
* accessible over the web.
*
* If this is not set, the default for the operating system will be used.
*
* @see \Drupal\Component\FileSystem\FileSystem::getOsTemporaryDirectory()
*/
# $settings['file_temp_path'] = '/tmp';
Existing sites with custom values should add this instead of $config['system.file']['path']['temporary'] = 'foo/bar'; to their settings.php file before running update.php to ensure the old config at system.file:path.temporary is cleaned up.
Impacts:
Module developers