BookStack\Repos\PageRepo::getUserPageDraftMessage PHP Method

getUserPageDraftMessage() public method

Get the notification message that informs the user that they are editing a draft page.
public getUserPageDraftMessage ( PageRevision $draft ) : string
$draft BookStack\PageRevision
return string
    public function getUserPageDraftMessage(PageRevision $draft)
    {
        $message = 'You are currently editing a draft that was last saved ' . $draft->updated_at->diffForHumans() . '.';
        if ($draft->page->updated_at->timestamp > $draft->updated_at->timestamp) {
            $message .= "\n This page has been updated by since that time. It is recommended that you discard this draft.";
        }
        return $message;
    }