/** * sites all */ function action_api_editor_sites() { $this->renderer->set_ajax_answer($this->context->get_sites()->as_json())->ajax_flush(); }