QueryFieldServiceInterface
QueryFieldServiceInterface.php
:
14
Executes queries for a query field.
Methods¶
countContentItems() ¶
QueryFieldServiceInterface.php
:
38
Counts the total results of a query.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$content | Content | - | - |
$fieldDefinitionIdentifier | string | - | - |
Return values
int
Tags
getPaginationConfiguration() ¶
QueryFieldServiceInterface.php
:
62
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$content | Content | - | - |
$fieldDefinitionIdentifier | string | - | - |
Return values
int
The page size, or 0 if pagination is disabled.
Tags
loadContentItems() ¶
QueryFieldServiceInterface.php
:
26
Executes the query without pagination and returns the content items.
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$content | Location | - | - |
$fieldDefinitionIdentifier | string | - | - |
Return values
array<string|int, Content>
Tags
loadContentItemsSlice() ¶
QueryFieldServiceInterface.php
:
52
Executes a paginated query and return the requested content items slice.
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$content | Content | - | - |
$fieldDefinitionIdentifier | string | - | - |
$offset | int | - | - |
$limit | int | - | - |
Return values
array<string|int, Content>