eZ\Publish\Core\Repository\URLWildcardService::match PHP Method

match() private method

if the wildcard matches on the given url this method will return a ready to use destination url, otherwise this method will return NULL.
private match ( string $url, eZ\Publish\SPI\Persistence\Content\UrlWildcard $wildcard ) : null | string
$url string
$wildcard eZ\Publish\SPI\Persistence\Content\UrlWildcard
return null | string
    private function match($url, SPIUrlWildcard $wildcard)
    {
        if (preg_match($this->compile($wildcard->sourceUrl), $url, $match)) {
            return $this->substitute($wildcard->destinationUrl, $match);
        }
        return null;
    }