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:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user