public function getLiveURLSegment()
    {
        /** @var SiteTree $liveRecord */
        $liveRecord = Versioned::get_one_by_stage(self::class, Versioned::LIVE, [
            '"SiteTree"."ID"' => $this->ID
        ]);
        return ($liveRecord) ? $liveRecord->URLSegment : null;
    }
public function getLiveURLSegment()
    {
        /** @var SiteTree $liveRecord */
        $liveRecord = Versioned::get_one_by_stage(self::class, Versioned::LIVE, [
            '"SiteTree"."ID"' => $this->ID
        ]);
        return ($liveRecord) ? $liveRecord->URLSegment : null;
    }
public function getLiveURLSegment ( ) { /** @var SiteTree $liveRecord */ $ liveRecord = Versioned :: get_one_by_stage ( self :: class , Versioned :: LIVE , [ '"SiteTree"."ID"' => $ this -> ID ] ) ; return ( $ liveRecord ) ? $ liveRecord -> URLSegment : null ; }
Gets the URL segment for the currently published version of this page.

@return string
Gets the URL segment for the currently published version of this page .