Skip to content

IsMainLocation Criterion

The IsMainLocation Search Criterion searches for locations based on whether they're the main location of a content item or not.

This Criterion is available only for Location Search.

Arguments

  • value - IsMainLocation::MAIN (0) or IsMainLocation::NOT_MAIN (1), representing whether to search for a main or not main location

Example

PHP

1
$query->query = new Criterion\Location\IsMainLocation(IsMainLocation::MAIN);