Essence\Provider\Collection::_matches PHP Метод

_matches() защищенный Метод

Tells if an URL matches a filter.
protected _matches ( string | callable $filter, string $url ) : boolean
$filter string | callable Regex or callback to filter URL.
$url string URL to filter.
Результат boolean Whether the URL matches the filter or not.
    protected function _matches($filter, $url)
    {
        if (is_string($filter)) {
            return (bool) preg_match($filter, $url);
        }
        if (is_callable($filter)) {
            return call_user_func($filter, $url);
        }
        return false;
    }