#23054 added support for published entities in context_from_entity.