Skip to content

Pattern Criterion

The Pattern URL Criterion matches URLs that contain the provided pattern.

Arguments

  • pattern - string representing the pattern that needs to be a part of the URL

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\Pattern('ibexa.co');