Devise\Pages\PagesRepository::getLivePageVersionByAB PHP Method

getLivePageVersionByAB() public method

Get the live page using ab testing logic. This will first search for a cookie and if no version is found it will use the dice roll. If no page version is found with this dice roll then it will resort back to using the old "dates" system.
public getLivePageVersionByAB ( [type] $page ) : [type]
$page [type]
return [type]
    public function getLivePageVersionByAB($page)
    {
        $liveVersion = $this->getLivePageVersionByCookie($page);
        if ($liveVersion) {
            return $liveVersion;
        }
        $liveVersion = $this->getLivePageVersionByDiceRoll($page);
        if ($liveVersion) {
            return $liveVersion;
        }
        return $this->getLivePageVersionByDate($page);
    }