/** * Method to render the view. * * We just return JSON string for Joomla to respond it. * * @return string The rendered view. * * @throws \RuntimeException */ public function doRender() { return (string) JsonResponse::response($this->data->toArray()); }