ElementCriteria ​
- Type
- Class
- Namespace
- craft\mcp\public
- Inherits
- craft\mcp\public\ElementCriteria
- Since
- 5.12.0
Public Methods ​
| Method | Description |
|---|---|
| __construct() | |
| assertSupported() | |
| for() | |
| sortFields() |
__construct() ​
Arguments ​
$access$elementQueryCriteria
assertSupported() ​
Arguments ​
$type$criteria(array<string,mixed>)
for() ​
Arguments ​
$type
Returns ​
array{available: list<array{name: string, type: string, description: string}>, publicConstraints: array<string,string>}
sortFields() ​
Arguments ​
$type
Returns ​
array<string,string> – Public sort field names mapped to native query columns.