Skip to content

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.

View source

Public Methods ​

MethodDescription
__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() ​

View source

Arguments ​

  • $users

name() ​

Returns the edition’s display name, such as “Craft Pro”.

View source

Arguments ​

  • $edition

unavailable() ​

View source

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.

View source

Constants ​

ConstantDescription
Features