Issue #2030151 by damiankloip, dawehner: Convert entity_get_bundles() to a method on the entity manager.