QueryFieldServiceInterface
QueryFieldServiceInterface.php
:
16
Interface
Executes queries for a query field.
Methods¶
countContentItems()
¶
QueryFieldServiceInterface.php
:
32
Counts the total results of a query.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $content | Content | - | - |
| $fieldDefinitionIdentifier | string | - | - |
Return values
int
Tags
getPaginationConfiguration()
¶
QueryFieldServiceInterface.php
:
51
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $content | Content | - | - |
| $fieldDefinitionIdentifier | string | - | - |
Return values
int
Tags
loadContentItems()
¶
QueryFieldServiceInterface.php
:
25
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
:
41
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>