require 'scrivito/page_config' module Scrivito class PageConfig def current_page_config # TODO: add permission info return {} unless obj { id: obj.id, # TODO: document obj_type problems path: obj.path, obj_class: obj.obj_class, has_children: obj.children.any?, has_conflict: obj.has_conflict?, has_details_view: obj_has_details_view?, modification: modification(obj), parent_path: obj.parent_path, restriction_messages: editor.restriction_messages_for(obj), } end end end