eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Map::reverseMatch PHP Method

reverseMatch() public method

public reverseMatch ( string $siteAccessName ) : eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher | Map | null
$siteAccessName string
return eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher | Map | null
    public function reverseMatch($siteAccessName)
    {
        $reverseMap = $this->getReverseMap($siteAccessName);
        if (!isset($reverseMap[$siteAccessName])) {
            return null;
        }
        $this->setMapKey($reverseMap[$siteAccessName]);
        return $this;
    }

Usage Example

Example #1
0
 public function reverseMatch($siteAccessName)
 {
     $matcher = parent::reverseMatch($siteAccessName);
     if ($matcher instanceof self) {
         $matcher->getRequest()->setPort($matcher->getMapKey());
     }
     return $matcher;
 }
All Usage Examples Of eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Map::reverseMatch