EditionFeatures
- Type
- Class
- Namespace
- craft\mcp
- Inherits
- craft\mcp\EditionFeatures
- Since
- 5.12.0
Craft features that need a higher edition, so MCP clients can say so rather than treat them as unknown.
Public Methods
| Method | Description |
|---|---|
| __construct() | |
| name() | Returns the edition’s display name, such as “Craft Pro”. |
| unavailable() | |
| userLimitReason() | Returns why new users can’t be created, if the current edition’s user limit has been reached. |
__construct()
Arguments
$users
name()
Returns the edition’s display name, such as “Craft Pro”.
Arguments
$edition
unavailable()
Returns
list<array{feature: string, requiredEdition: string, tools: string}>
userLimitReason()
Returns why new users can’t be created, if the current edition’s user limit has been reached.
Constants
| Constant | Description |
|---|---|
Features |