Closed (fixed)
Project:
Drupal core
Version:
9.0.x-dev
Component:
theme system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Feb 2020 at 11:54 UTC
Updated:
29 Feb 2020 at 07:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
hardik_patel_12 commentedKindly review a patch.
Comment #3
hardik_patel_12 commentedComment #4
hardik_patel_12 commentedComment #5
naresh_bavaskarComment #6
naresh_bavaskarAbove patch applied successfully, LGTM
Comment #7
longwaveNeeds work due to all tests failing.
Comment #8
alexpott@naresh_bavaskar - the tests in #2 have completely failed. "Build Successful" is not the same as tests passed :)
I would leave out the stylesheets remove stuff - that needs more work to do properly - and much of this will be done in #3069052: Properly deprecate the stylesheets-remove key from theme info.yml files.
This issue can deal with the removal of \Drupal\Core\Theme\ActiveTheme::$baseThemes
Comment #9
longwaveComment #10
alexpott@longwave you need to remove core/tests/Drupal/KernelTests/Core/Theme/ActiveThemeLegacyTest.php too. It's a good idea to search the codebase for deprecation messages when removing an @trigger_error
Comment #11
hash6 commentedComment #12
hash6 commentedUpdated the Patch
- Removed the ActiveThemeLegacyTest.php
- Removed the getStyleSheetsRemove() in ActiveTheme.php
Comment #13
hash6 commentedComment #14
hash6 commentedComment #15
alexpott@hash6 the style sheets remove stuff should be left alone for now there is a separate issue for that - see earlier comments and issue title
Comment #16
hash6 commentedComment #17
hash6 commentedComment #18
hash6 commentedComment #19
hash6 commentedComment #20
longwaveThanks for removing the obsolete test.
Comment #21
andypostThere was not much time passed since deprecation so better to replace it with assert()
Comment #22
alexpott@andypost I don't think so - actually constructing your own ActiveTheme object is not really done in contrib.
Committed d57f7eb and pushed to 9.0.x. Thanks!