Drupal 9 deprecated method