Replace extension.path.resolver with extension.module.list service.
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3308366. -->
Reported by: [feyp](https://www.drupal.org/user/998680)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>For Drupal 10 compatibility we replaced <code>drupal_get_path()</code> with <code>extension.path.resolver</code> as indicated in the deprecation message, but this service is only available since 9.3. So we had to add in a fallback to support older versions. Turns out there is another service <code>extension.list.module</code> that we could use that's available since 8.8. That way we could remove the fallback.</p>
issue