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.
Problem/Motivation
Follow up to #2347783-150: Deprecate drupal_get_path() and drupal_get_filename() and replace with ExtensionList::getPath() and ExtensionList::getPathname() we do not have a property for $themeInitialization
in \Drupal\Core\Theme\Registry
even though we set it in the constructor.
Proposed resolution
Add the property like:
/**
* The theme initialization.
*
* @var \Drupal\Core\Theme\ThemeInitializationInterface
*/
protected $themeInitialization;
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
None.
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | 3086397-addvar-2.patch | 517 bytes | subson |
Comments
Comment #2
subson CreditAttribution: subson as a volunteer commentedAdded the property.
Comment #3
kim.pepperLGTM!
Comment #5
alexpottTechnically this is a BC break because AMT the property is public and this makes it protected. Therefore going to commit this to 8.9.x and 9.0.x and not 8.8.x to given anyone who is using public access the chance to just get the service themselves.
Committed and pushed ebb2ac232f to 9.0.x and cbe491b440 to 8.9.x. Thanks!