I don't understand why they are so much functions deprecated on Drupal 8. From the basics (node load, node delete,...) to more complicated (getFieldDefinitions,...).
And their is no explanation for using the new way of implementation in the official documentation.
For example, I want to get the definitions of all my fields for a content type. The old way was :
Drupal::service('entity_field.manager')->getFieldDefinitions(xxx, xxx);
For somes reasons, its now deprecated. Now, we have to use this. But how use it... that's the question. Their absolutely no example or help. I would use the getFieldDefinitions function from this class, but I have to create a instance from it, the function is not static.
How do I do :( ?