Skip to content

Validity Criterion

The Validity URL Criterion matches URLs based on a validity flag.

Arguments

  • isValid - bool representing whether the matcher selects only valid URLs

Example

1
2
3
4
5
use Ibexa\Contracts\Core\Repository\Values\URL\Query\Criterion;
use Ibexa\Contracts\Core\Repository\Values\URL\URLQuery;

$query = new URLQuery();
$query->filter = new Criterion\Validity(true);