Skip to content

SectionId Criterion

The SectionId URL Criterion matches URLs based on the ID of the related content Section.

Arguments

  • sectionIds - array of ints representing the IDs of the related content Sections

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\SectionId([1, 3]);