Issue #3456481 by renatog: Implements dependency injection with entityTypeManager instead of MediaType::loadMultiple
Closes #3456481