Sites ​
- Type
- Class
- Namespace
- craft\mcp\capabilities
- Inherits
- craft\mcp\capabilities\Sites
- Since
- 5.12.0
Public Methods ​
| Method | Description |
|---|---|
| __construct() | |
| create() | |
| delete() | |
| get() | |
| list() | |
| resource() | |
| resourceByIdentifier() | |
| update() |
__construct() ​
Arguments ​
$sites
create() ​
Arguments ​
$attributes(array<string,mixed>) – Native Craft site attributes.
Returns ​
array{site: array<string,mixed>}
delete() ​
Arguments ​
Returns ​
array{deleted: true}
get() ​
Arguments ​
$id$uid$handle
Returns ​
array{site: array<string,mixed>}
list() ​
Returns ​
array{count: int, sites: list<array<string,mixed>>}
resource() ​
Returns ​
array{count: int, sites: list<array<string,mixed>>}
resourceByIdentifier() ​
Arguments ​
$site
Returns ​
array{site: array<string,mixed>}
update() ​
Arguments ​
$id$uid$handle$attributes(array<string,mixed>) – Native Craft site attributes to update.
Returns ​
array{site: array<string,mixed>}
Constants ​
| Constant | Description |
|---|---|
AttributesSchema |