2828use Magento \Framework \View \EntitySpecificHandlesList ;
2929
3030/**
31- * Class Page represents a "page" result that encapsulates page type, page configuration, and imposes certain layout handles.
31+ * Class Page represents a "page" result that encapsulates page type, page configuration
32+ * and imposes certain layout handles.
3233 *
3334 * The framework convention is that there will be loaded a guaranteed handle for "all pages",
3435 * then guaranteed handle that corresponds to page type
@@ -254,6 +255,10 @@ public function addPageLayoutHandles(array $parameters = [], $defaultHandle = nu
254255 * Render the page.
255256 *
256257 * {@inheritdoc}
258+ *
259+ * @param HttpResponseInterface $response The HTTP response object.
260+ * @return $this
261+ * @throws \Exception If the template file is not found.
257262 */
258263 protected function render (HttpResponseInterface $ response )
259264 {
@@ -275,10 +280,10 @@ protected function render(HttpResponseInterface $response)
275280 'bodyAttributes ' => $ this ->pageConfigRenderer ->renderElementAttributes ($ config ::ELEMENT_TYPE_BODY ),
276281 'loaderIcon ' => $ this ->getViewFileUrl ('images/loader-2.gif ' ),
277282 ]);
278-
283+
279284 $ output = $ this ->getLayout ()->getOutput ();
280285 $ this ->assign ('layoutContent ' , $ output );
281- $ output = $ this ->renderPage ($ output );
286+ $ output = $ this ->renderPage ();
282287 $ this ->translateInline ->processResponseBody ($ output );
283288 $ response ->appendBody ($ output );
284289 } else {
@@ -337,7 +342,7 @@ protected function assign($key, $value = null)
337342 * @return string
338343 * @throws \Exception
339344 */
340- protected function renderPage ($ output )
345+ protected function renderPage ()
341346 {
342347 $ fileName = $ this ->viewFileSystem ->getTemplateFileName ($ this ->template );
343348 if (!$ fileName ) {
0 commit comments