Just some context: I'm working on a brand new site we're hoping to deploy next year. I had the wild idea of starting with Drupal 11 from scratch.

I was trying to get the contrib module simple_oauth up and running, which happens to make a call to FileSecurity::writeWebConfig(). (In /web/core/lib/Drupal/Component/FileSecurity/FileSecurity.php)

I noticed that this function no longer exists in Drupal 11. And as the D11 release notes say, web.config functionality is to be removed in D11.

I see this function existing in the D10 API

I see this function removed in the D11 API

Here's the funny part - FileSecurity::writeWebConfig() was never flagged as deprecated in the D10 documentation. This probably would throw the people working on modules like simple_oauth off guard.

It's probably too much to ask for a stub to be added in, but is there any documentation cleanup that needs to happen here?

Comments

TrevorBradley created an issue. See original summary.

trevorbradley’s picture

Issue summary: View changes
longwave’s picture

We could definitely backport a deprecation notice to this method in 10.x.

quietone’s picture

Version: 11.0.x-dev » 11.x-dev

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.