Skip to content

ProjectConfig ​

Type
Class
Namespace
craft\mcp\capabilities
Inherits
craft\mcp\capabilities\ProjectConfig
Since
5.12.0

View source

Public Methods ​

MethodDescription
__construct()
apply()
diff()
get()
rebuild()
status()
write()

__construct() ​

View source

Arguments ​

  • $projectConfig
  • $sensitiveValues

apply() ​

View source

Returns ​

array{applied: true, appliedChanges: list<array{added?: array<string,mixed>, removed?: array<string,mixed>, message?: string}>}

diff() ​

View source

Arguments ​

  • $invert

Returns ​

array{invert: bool, diff: string}

get() ​

View source

Arguments ​

  • $path
  • $external

Returns ​

array{path: string|null, external: bool, value: mixed}

rebuild() ​

View source

Returns ​

array{rebuilt: true}

status() ​

View source

Arguments ​

  • $path

Returns ​

array{status: array<string,mixed>}

write() ​

View source

Arguments ​

  • $force

Returns ​

array{written: true, forced: bool, hadFileWriteIssues: bool}