1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Merge branch 'prev-next-button' of https://github.com/shubhamosmosys/BookStack into shubhamosmosys-prev-next-button

This commit is contained in:
Dan Brown
2021-05-26 22:13:19 +01:00
6 changed files with 90 additions and 1 deletions

View File

@ -138,4 +138,13 @@ class Page extends BookChild
$refreshed->html = (new PageContent($refreshed))->render();
return $refreshed;
}
/**
* Get the parent chapter ID.
*/
public function getParentChapter()
{
$chapterId = $this->chapter()->visible()
->get('id');
return $chapterId;
}
}