Deprecated code cleanup: Updating EntityManager to EntityFieldManagerInterface
EntityFieldManager has no shortcut in \Drupal, so you need to get it through \Drupal::service():

$fields = \Drupal::service('entity_field.manager')-&gt;getFieldStorageDefinitions($entity_type);