I added version 8.x-3.17
to one of my projects. After scanning it reported 1 problem for a theme file:
Call to deprecated function drupal_get_path(). Deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use Drupal\Core\Extension\ExtensionPathResolver::getPath() instead.
When I updated my theme, my IDE squarked:
Non static method 'getPath' should not be called statically.
Indeed, this method is public function getPath
.
If I run palantirnet/drupal-rector:0.13.1
, I recieved "better" advise:
-define('THEME_PATH', base_path() . drupal_get_path('theme', 'mytheme'));
+define('THEME_PATH', base_path() . \Drupal::service('extension.list.theme')->getPath('mytheme'));
Perhaps the included rector version need bumping?
Upgrade_status: 8.x-3.17
Drupal version : 9.4.7
PHP version : 8.1.11
Closed: works as designed
3.17
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.