public function getBody() { $viewName = $this->getViewName(); if ($this->body === null && $viewName !== null) { $attributes = $this->getAttributes(); $body = $this->viewManager->render($viewName, $attributes); $this->setBody($body); } return $this->body; }