BookStack\PageRevision::getUrl PHP 메소드

getUrl() 공개 메소드

Get the url for this revision.
public getUrl ( null | string $path = null ) : string
$path null | string
리턴 string
    public function getUrl($path = null)
    {
        $url = $this->page->getUrl() . '/revisions/' . $this->id;
        if ($path) {
            return $url . '/' . trim($path, '/');
        }
        return $url;
    }