Drupal 9 deprecations
See also #122 (closed) which is about the civicrm-drupal-8 repo, whereas this is more about core files.
entity_create() is gone.
entity_load() is gone.
url() is gone.
getUsername() is gone.
I have a patch ready but haven't fully tested it yet. WIP: https://github.com/civicrm/civicrm-core/compare/master...demeritcowboy:entity-drupal-9?expand=1