QueryFieldLocationService
QueryFieldLocationService.php
:
14
Executes queries for a query field for a given a location.
Methods¶
countContentItemsForLocation() ¶
QueryFieldLocationService.php
:
33
Counts the results for the given location.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$location | Location | - | - |
$fieldDefinitionIdentifier | string | - | - |
Return values
int
loadContentItemsForLocation() ¶
QueryFieldLocationService.php
:
21
Returns the query results for the given location.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$location | Location | - | - |
$fieldDefinitionIdentifier | string | - | - |
Return values
iterable<string|int, mixed>
An iterable that yields Content items.
loadContentItemsSliceForLocation() ¶
QueryFieldLocationService.php
:
28
Returns a slice of the query results for the given location.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$location | Location | - | - |
$fieldDefinitionIdentifier | string | - | - |
$offset | int | - | - |
$limit | int | - | - |
Return values
iterable<string|int, mixed>
An iterable that yields Content items.