QueryFieldServiceInterface
QueryFieldServiceInterface.php
:
15
Interface
Executes queries for a query field.
Methods¶
countContentItems()
¶
QueryFieldServiceInterface.php
:
31
Counts the total results of a query.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $content | Content | - | - |
| $fieldDefinitionIdentifier | string | - | - |
Return values
int
Tags
getPaginationConfiguration()
¶
QueryFieldServiceInterface.php
:
47
|
|
|
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
:
24
Executes the query without pagination and returns the content items.
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $content | Content | - | - |
| $fieldDefinitionIdentifier | string | - | - |
Return values
array<string|int, Content>
Tags
loadContentItemsSlice()
¶
QueryFieldServiceInterface.php
:
40
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>