28
28
use Magento \Framework \View \EntitySpecificHandlesList ;
29
29
30
30
/**
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.
32
33
*
33
34
* The framework convention is that there will be loaded a guaranteed handle for "all pages",
34
35
* then guaranteed handle that corresponds to page type
@@ -254,6 +255,10 @@ public function addPageLayoutHandles(array $parameters = [], $defaultHandle = nu
254
255
* Render the page.
255
256
*
256
257
* {@inheritdoc}
258
+ *
259
+ * @param HttpResponseInterface $response The HTTP response object.
260
+ * @return $this
261
+ * @throws \Exception If the template file is not found.
257
262
*/
258
263
protected function render (HttpResponseInterface $ response )
259
264
{
@@ -275,10 +280,10 @@ protected function render(HttpResponseInterface $response)
275
280
'bodyAttributes ' => $ this ->pageConfigRenderer ->renderElementAttributes ($ config ::ELEMENT_TYPE_BODY ),
276
281
'loaderIcon ' => $ this ->getViewFileUrl ('images/loader-2.gif ' ),
277
282
]);
278
-
283
+
279
284
$ output = $ this ->getLayout ()->getOutput ();
280
285
$ this ->assign ('layoutContent ' , $ output );
281
- $ output = $ this ->renderPage ($ output );
286
+ $ output = $ this ->renderPage ();
282
287
$ this ->translateInline ->processResponseBody ($ output );
283
288
$ response ->appendBody ($ output );
284
289
} else {
@@ -337,7 +342,7 @@ protected function assign($key, $value = null)
337
342
* @return string
338
343
* @throws \Exception
339
344
*/
340
- protected function renderPage ($ output )
345
+ protected function renderPage ()
341
346
{
342
347
$ fileName = $ this ->viewFileSystem ->getTemplateFileName ($ this ->template );
343
348
if (!$ fileName ) {
0 commit comments