Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Follow-up to #2873750: Add Change record to @deprecated for install_ensure_config_directory()
Add @trigger_error() to and remove usages of install_ensure_config_directory()
This method was deprecated in #2466197: Staging directory should not have to be writeable..
Comment | File | Size | Author |
---|---|---|---|
#3 | 2914033-3.patch | 1.54 KB | alexpott |
#2 | 2914033-2.patch | 1.57 KB | alexpott |
Comments
Comment #2
alexpottHere's a patch
Comment #3
alexpottRerolled.
Comment #4
borisson_In
install_ensure_config_directory
we were also doing:
file_prepare_directory($config_directory, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS);
So that means that functionally we're doing the same thing, looks very good.
Comment #5
xjmConfirmed that this is the last reference:
The change record in https://www.drupal.org/node/2501187 doesn't mention this function and only refers to the long-gone active directory. It looks like the CR reference was added in #2873750: Add Change record to @deprecated for install_ensure_config_directory(), but let's either update the change record appropriately or switch to a better one if there's a better one?
Comment #6
alexpottI've added the deprecation of the function to the existing CR. The code that was already on the CR is the same code that you would need to replace the call to
install_ensure_config_directory()
.Comment #9
xjmCommitted and pushed to 8.5.x and cherry-picked to 8.4.x. Thanks!