// Check if the whole resource should be skipped (value: 0)
if (\
in_array(0,
$filters, true
)) { continue;
} // Check if no filters exist at all
if (!
$filters) { return $urls;
} $filterHandler =
$this->
getFilterHandler($url->
getResource());
if (!
$filterHandler) { throw new UrlFilterException(sprintf('No handler known for resource \'%s\'.',
$url->
getResource()));
} if ($filterHandler->
isFiltered($url->
getIdentifier(),
$filters)) { continue;
} $filteredUrls[] =
$url;
}