eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Regex::getMatchedSiteAccess PHP Method

getMatchedSiteAccess() protected method

Returns matched SiteAccess.
protected getMatchedSiteAccess ( ) : string | boolean
return string | boolean
    protected function getMatchedSiteAccess()
    {
        if (isset($this->matchedSiteAccess)) {
            return $this->matchedSiteAccess;
        }
        preg_match("@{$this->regex}@", $this->element, $match);
        $this->matchedSiteAccess = isset($match[$this->itemNumber]) ? $match[$this->itemNumber] : false;
        return $this->matchedSiteAccess;
    }