This exposes ViewLayer.object_bases, similar to 2.7x Scene.object_bases.
It's an open topic if we should expose this or continue to keen this data-type mostly internal.
Submitting this for review since we might want avoid exposing ObjectBase and resolve the bug some other way.
This patch resolves T77844: outliner visibility not binded to bpy.context.object.hide_viewport.
At the moment there is no data-path we display when changing ObjectBase.hide_viewport
since there is no way to access this from the context.
This patch addresses this by exposing a object bases and defining a path callback
so these values can be looked up.