Issue #3597964: Add Drupal 12 compatibility
Adds Drupal 12 compatibility updates.
Summary:
- Replaces direct deprecated/removed API usages with Drupal 12-compatible service/enum paths.
- Provides fallback behaviour for older core versions.
- Removes hard static references to optional Smart IP and Domain classes.
- Updates the D7 migration source away from deprecated
DrupalSqlBase. - Fixes strict return type and test property visibility issues reported by Upgrade Status.
Closes #3597964