Drupal 10 compatibility - Call to deprecated method getImplementations() of class Drupal\Core\Extension\ModuleHandlerInterface. Deprecated

Created on 1 October 2023, about 1 year ago
Updated 9 February 2024, 11 months ago

Problem/Motivation

We are working on a drupal 9 to 10 upgrade. Still preparing so our site using Drupal 9 actually.
Installed XML sitemap version: XML Sitemap 8.x-1.5 which is the latest stable and theoretically compatible with Drupal 10 but
upgrade status module notifies me the following errors (not warnings):

tests/src/Functional/XmlSitemapFunctionalTest.php
line: 36
Call to deprecated method drupalGetHeader() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Use $this->getSession()->getResponseHeader() instead.

tests/src/Functional/XmlSitemapFunctionalTest.php
line. 37
Call to deprecated method drupalGetHeader() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Use $this->getSession()->getResponseHeader() instead.

tests/src/Functional/XmlSitemapFunctionalTest.php
line:67
Call to deprecated function taxonomy_term_load_multiple_by_name(). Deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadByProperties(['name' => $name, 'vid' => $vid]) instead, to get a list of taxonomy term entities having the same name and keyed by their term ID.

xmlsitemap.module
line: 2351
Call to deprecated method getImplementations() of class Drupal\Core\Extension\ModuleHandlerInterface. Deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. Instead you should use ModuleHandlerInterface::invokeAllWith() for hook invocations or you should use ModuleHandlerInterface::hasImplementations() to determine if hooks implementations exist.

Errors #1-3 are related to test so probably doesn't affects daily usage of module but the #4 is related to the xmlsitemap.module so I think It may require attention

🐛 Bug report
Status

Needs review

Version

1.5

Component

xmlsitemap.module

Created by

🇭🇺Hungary kepesv

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024