Skip to content

Commit be96136

Browse files
authored
Add page title to the HTML generated by PHP (#42)
1 parent 3627164 commit be96136

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Content/Page.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ public function __invoke(Document $document, ServerRequestInterface $request)
5858

5959
$apiDocument = $this->getApiDocument($request, $id);
6060

61+
$document->title = $apiDocument->data->attributes->title;
62+
6163
$document->content = $this->view->make('fof-pages::content.page', compact('apiDocument'));
6264

6365
$document->payload['apiDocument'] = $apiDocument;

0 commit comments

Comments
 (0)