Add core version requirement support for drupal 10
Needs review
3.0
Code
Please review the patch
Change the minimum required PHP version from 7 to 8.
Replace drupal_get_path() with D10 service methods.