- ππΊHungary GΓ‘bor Hojtsy Hungary
Updating title, tags and version number based on recent announcement at https://www.drupal.org/about/core/blog/new-drupal-core-branching-scheme-... β
- πΊπΈUnited States smustgrave
Didn't realize we this so closed π± [META] Remove deprecated classes, methods, procedural functions and code paths outside of deprecated modules on the Drupal 11 branch Closed: duplicate as a duplicate and moved over all child issues from that meta to here.
- Status changed to Active
10 months ago 6:03am 4 March 2024 - ππΊHungary GΓ‘bor Hojtsy Hungary
Great work on getting started with this :) According to my scripts, Feb 29 was the high point and its been going down steeply from there. Quite impressively!
- π«π·France andypost
Related also contains 10.1/10.2 deprecations π± [meta] Remove dead code/unneeded compatibility layers now that PHP 8.1 is required Active
- π«π·France andypost
Filed MR π [11.x] Remove deprecated code from system module Needs review
- π«π·France andypost
Filed another one π Remove deprecated help_topics module Needs review
- π¬π§United Kingdom catch
Opened π Remove deprecated code from field_ui Fixed .
- π¬π§United Kingdom catch
Also π Remove deprecated code/bc layers from workspaces module Needs review .
- ππΊHungary GΓ‘bor Hojtsy Hungary
Even after the core module removals, this 97 mentions of @deprecated against Drupal 11 (and in two cases Drupal 10) remains. I think most bigger ones have issues above, but not all, in case someone wants to chip away at this :) (The list of E_USER_DEPRECATED is much longer, probably lots of these will remove many of that too).
core/misc/ajax.js: * @deprecated in drupal:8.6.0 and is removed from drupal:10.0.0. core/misc/ajax.js: * @deprecated in drupal:8.6.0 and is removed from drupal:10.0.0. core/tests/Drupal/Tests/RandomGeneratorTrait.php: * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. core/tests/TestSuites/TestSuiteBase.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no core/tests/TestSuites/KernelTestSuite.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no core/tests/TestSuites/FunctionalJavascriptTestSuite.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no core/tests/TestSuites/BuildTestSuite.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no core/tests/TestSuites/UnitTestSuite.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no core/tests/TestSuites/FunctionalTestSuite.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no core/includes/bootstrap.inc: * @deprecated in drupal:8.3.0 and is removed from drupal:11.0.0. core/lib/Drupal/Core/Password/PhpassHashedPassword.php: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. The core/lib/Drupal/Core/Logger/LoggerChannelFactory.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/lib/Drupal/Core/Asset/AssetCollectionOptimizerInterface.php: * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. There is core/lib/Drupal/Core/Test/TestSetupTrait.php: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no core/lib/Drupal/Core/Config/ConfigEvents.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/lib/Drupal/Core/Config/TypedConfigManager.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/lib/Drupal/Core/Config/TypedConfigManager.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/lib/Drupal/Core/Config/TypedConfigManager.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/lib/Drupal/Core/Config/TypedConfigManager.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/lib/Drupal/Core/Datetime/Element/Datetime.php: * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. core/lib/Drupal/Core/Entity/Controller/EntityViewController.php: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use core/lib/Drupal/Core/Entity/EntityStorageInterface.php: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use core/lib/Drupal/Core/Entity/EntityStorageInterface.php: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use core/lib/Drupal/Core/Entity/EntityTypeManager.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. core/lib/Drupal/Core/Render/Element/Ajax.php: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Return an core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Only string core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use core/lib/Drupal/Core/Updater/Module.php: * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use core/lib/Drupal/Core/Controller/ArgumentResolver/Psr7RequestValueResolver.php: * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. core/lib/Drupal/Core/Controller/ArgumentResolver/RouteMatchValueResolver.php: * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. core/lib/Drupal/Core/Url.php: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no core/lib/Drupal/Core/Url.php: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no core/lib/Drupal/Core/Routing/UrlGenerator.php: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Only string core/lib/Drupal/Core/Routing/UrlGenerator.php: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use core/lib/Drupal/Core/Utility/LinkGeneratorInterface.php: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use core/lib/Drupal/Core/Session/PermissionsHashGenerator.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no core/modules/update/src/Controller/UpdateController.php: * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use core/modules/jsonapi/src/Controller/TemporaryJsonapiFileFieldUploader.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/modules/jsonapi/src/Controller/TemporaryJsonapiFileFieldUploader.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/modules/jsonapi/src/Controller/TemporaryJsonapiFileFieldUploader.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/modules/jsonapi/src/Controller/TemporaryJsonapiFileFieldUploader.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/modules/file/file.api.php: * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use the core/modules/file/file.module: * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use the core/modules/file/file.module: * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use the core/modules/file/file.module: * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use the core/modules/file/file.module: * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use the core/modules/file/file.module: * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use the core/modules/file/file.module: * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use the core/modules/file/file.module: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/modules/file/file.module: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/modules/file/file.module: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/modules/file/src/Plugin/rest/resource/FileUploadResource.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/modules/file/src/Plugin/rest/resource/FileUploadResource.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/modules/file/src/Plugin/rest/resource/FileUploadResource.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/modules/file/src/Plugin/rest/resource/FileUploadResource.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/modules/file/src/Upload/UploadedFileInterface.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/modules/file/src/Upload/UploadedFileInterface.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/modules/file/src/Upload/UploadedFileInterface.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/modules/file/src/Upload/FileUploadHandler.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. core/modules/contextual/js/contextual.js: * @deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. There is no core/modules/contextual/js/contextual.js: * @deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. There is no core/modules/contextual/js/contextual.js: * @deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. There is no core/modules/contextual/js/toolbar/models/StateModel.js: * @deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. There is no core/modules/contextual/js/toolbar/views/AuralView.js: * @deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. There is no core/modules/contextual/js/toolbar/views/VisualView.js: * @deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. There is no core/modules/contextual/js/models/StateModel.js: * @deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. There is no core/modules/contextual/js/contextual.toolbar.js: * @deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. There is core/modules/contextual/js/views/KeyboardView.js: * @deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. There is no core/modules/contextual/js/views/AuralView.js: * @deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. There is no core/modules/contextual/js/views/RegionView.js: * @deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. There is no core/modules/contextual/js/views/VisualView.js: * @deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. There is no core/modules/user/user.module: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no core/modules/user/user.module: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no core/modules/user/user.module: * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use core/modules/user/user.module: * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use core/modules/user/src/Form/UserLoginForm.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement. core/modules/workspaces/src/Form/WorkspaceFormInterface.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/modules/workspaces/src/WorkspaceManagerInterface.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/modules/workspaces/src/WorkspaceManagerInterface.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/modules/workspaces/src/WorkspaceManagerInterface.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no core/modules/workspaces/src/WorkspaceAssociationInterface.php: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use the core/modules/field/tests/src/Traits/EntityReferenceTestTrait.php: * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use core/modules/system/system.install: // @deprecated The sequences table has been deprecated in drupal:10.2.0 and is core/modules/system/tests/modules/deprecation_test/deprecation_test.module: * @deprecated in drupal:8.4.0 and is removed from drupal:9.0.0. This is core/modules/migrate/src/Plugin/migrate/id_map/Sql.php: * @deprecated in drupal:9.5.0 and is removed from drupal:11.0.0. Use core/modules/migrate/src/Plugin/MigrationInterface.php: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no core/modules/migrate/src/Plugin/MigrationInterface.php: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no core/modules/migrate/src/Plugin/MigrationInterface.php: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no core/modules/migrate/src/Plugin/Migration.php: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no core/modules/path_alias/src/AliasManager.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use core/modules/taxonomy/src/Plugin/views/argument/Taxonomy.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no core/modules/book/tests/src/Functional/BookTestTrait.php: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use core/modules/ckeditor5/src/Controller/CKEditor5ImageController.php: * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0 without replacement. core/modules/views/js/ajax_view.js: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. core/modules/views/src/Entity/Render/EntityTranslationRenderTrait.php: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use core/modules/views/src/Ajax/ScrollTopCommand.php: * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0.
- π³πΏNew Zealand quietone
The 2 in core/misc/ajax.js have an issue to add a deprecation notice, #2973400: Mark functions for wrapping Ajax response as deprecated β
- π¬π§United Kingdom catch
Opened π Remove deprecated code from jsonapi and serialization modules Fixed .
- π¬π§United Kingdom catch
Path alias: π Remove deprecated code from path_alias module Needs review .
- π«π·France andypost
it went down to 50 ATM and views/ui issue should be ready π Removed deprecated code in views module Needs review
- πΊπΈUnited States smustgrave
Opened
π Remove deprecated code from config module Active
π Remove deprecated code from phpPass + bigpipe Active
π Remove deprecated code from content translations + locale Active
π Remove deprecated code from field + datetime modules Active
π Remove deprecated code from media module Active
π Remove deprecated code from help + history modules Active
π Remove deprecated code from menu link content module Active
π Remove deprecated code from migration modules Active
π Remove deprecated code from search and options modules Activeπ Remove any missed deprecation code in modules Postponed = postponed
This should hopefully cover remaining modules.
- π«π·France andypost
there's some deprecated found in
responsive_image
module$ git grep deprecate -- core/modules/responsive_image/ core/modules/responsive_image/src/ResponsiveImageConfigUpdater.php:67: @trigger_error(sprintf('The responsive image style multiplier re-ordering update for "%s" is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Profile, module and theme provided Responsive Image configuration should be updated. See https://www.drupal.org/node/3274803', $responsive_image_style->id()), E_USER_DEPRECATED); core/modules/responsive_image/src/ResponsiveImageConfigUpdater.php:99: @trigger_error(sprintf('The responsive image loading attribute update for "%s" is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Configuration should be updated. See https://www.drupal.org/node/3279032', $view_display->id()), E_USER_DEPRECATED);
- π«π·France andypost
Ah no, it's covered by π Remove redudundat hook_ENTITY_TYPE_presave() and ViewsConfigUpdater methods Active
- πΊπΈUnited States smustgrave
Modules appears to be done but still appear to have a few hundred mentions in the lib folder.
- π«π·France andypost
Needs separate issue
composer/Plugin/Scaffold/Operations/ScaffoldFileCollection.php:157:
is deprecated for 10.x\Drupal\Composer\Plugin\Scaffold\Operations\ScaffoldFileCollection::process()
I bet we can find more starting with
git grep deprecated -- core/tests
- π«π·France andypost
There's leftover in
core/modules/system/config/schema$ ag deprecated system.schema.yml 330: deprecated: "The 'system.file:path.temporary' config property path is deprecated in drupal:8.8.0 and is removed from drupal 11.0.0. Use settings.php instead. See https://www.drupal.org/node/3039255."
- πΊπΈUnited States smustgrave
Just opened a bunch of tickets to cover deprecations in /lib
Feel free to assign ones you are working on.
- Status changed to RTBC
8 months ago 8:57am 7 May 2024 - π¬π§United Kingdom longwave UK
There's a few stragglers:
core/scripts/drupal.sh 16:trigger_error('drupal.sh is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3241346', E_USER_DEPRECATED); core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php 105: @trigger_error(sprintf('%s called unnecessarily in a test is deprecated in drupal:10.2.0 and will throw an exception in drupal:11.0.0. See https://www.drupal.org/node/3401201', __METHOD__), E_USER_DEPRECATED); core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php 146: @trigger_error('The "chromeOptions" array key is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use "goog:chromeOptions instead. See https://www.drupal.org/node/3422624', E_USER_DEPRECATED); core/tests/Drupal/Tests/BrowserTestBase.php 457: @trigger_error('Pushing requests without a session onto the request_stack is deprecated in drupal:10.3.0 and an error will be thrown from drupal:11.0.0. See https://www.drupal.org/node/3337193', E_USER_DEPRECATED); core/tests/Drupal/Tests/UnitTestCase.php 72: @trigger_error('Accessing the randomGenerator property is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use getRandomGenerator() instead. See https://www.drupal.org/node/3358445', E_USER_DEPRECATED);
- Status changed to Needs work
7 months ago 9:58pm 8 May 2024 - π«π·France andypost
Filed π Remove core/scripts/drupal.sh Needs review
remaining deprecation in test-suites according to #3443732-20: Remove deprecated PHPUnit test suites β
This one will be eventually fixed in π Upgrade PHPUnit to 10, drop Symfony PHPUnit-bridge dependency Fixed
- π«π·France andypost
There's one more deprecation leftover with own issue π Leftover D10 deprecations in ajax.js Needs work
- π«π·France andypost
All child issues are done, the only remaining is π Leftover D10 deprecations in ajax.js Needs work
So probably it could be closed