Issue #2972153 by dimitriskr, alexpott, smustgrave, andypost, kostyashupenko:...
Issue #2972153 by dimitriskr, alexpott, smustgrave, andypost, kostyashupenko: Deprecate ThemeHandlerInterface::getBaseThemes and remove usages from core
(cherry picked from commit 1e80a22b)
* Returns an array of all of the theme's ancestors; the first element's
* value will be NULL if an error occurred.
*
* @deprecated in drupal:10.3.0 and is removed from drupal:12.0.0. There
* is no direct replacement.
*
* @see https://www.drupal.org/node/3413187
*/
publicfunctiongetBaseThemes(array$themes,$theme){
@trigger_error("\Drupal\Core\Extension\ThemeExtensionList::getBaseThemes() is deprecated in drupal:10.3.0 and is removed from drupal:12.0.0. There is no direct replacement. See https://www.drupal.org/node/3413187",E_USER_DEPRECATED);
Changes for core/lib/Drupal/Core/Extension/ThemeHandler.php: 1 added line, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -133,6 +133,7 @@ public function rebuildThemeData() {
* {@inheritdoc}
*/
publicfunctiongetBaseThemes(array$themes,$theme){
@trigger_error("\Drupal\Core\Extension\ThemeHandlerInterface::getBaseThemes() is deprecated in drupal:10.3.0 and is removed from drupal:12.0.0. There is no direct replacement. See https://www.drupal.org/node/3413187",E_USER_DEPRECATED);
$this->expectDeprecation("\Drupal\Core\Extension\ThemeExtensionList::getBaseThemes() is deprecated in drupal:10.3.0 and is removed from drupal:12.0.0. There is no direct replacement. See https://www.drupal.org/node/3413187");