Embera\Providers\Facebook::urlMatchesPattern PHP Method

urlMatchesPattern() protected method

Checks if $this->url matches the given list of patterns
protected urlMatchesPattern ( array $patternList ) : boolean
$patternList array Array with regex
return boolean
    protected function urlMatchesPattern(array $patternList)
    {
        foreach ($patternList as $p) {
            if (preg_match($p, $this->url)) {
                return true;
            }
        }
        return false;
    }