Skip to content

BaseCheck ​

Type
Abstract Class
Namespace
craft\mcp\contentmodel\checks
Inherits
craft\mcp\contentmodel\checks\BaseCheck
Implements
craft\mcp\contentmodel\Check
Extended by
craft\mcp\contentmodel\checks\DuplicateFieldCandidates, craft\mcp\contentmodel\checks\EmptyEntryTypes, craft\mcp\contentmodel\checks\EmptySections, craft\mcp\contentmodel\checks\UnusedEntryTypes, craft\mcp\contentmodel\checks\UnusedFields
Since
5.12.0

Shared implementation for Craft's built-in content-model checks.

Plugins only need to implement {@see \craft\mcp\contentmodel\Check}; extending this class is optional.

View source

Public Methods ​

MethodDescription
id()
run()

run() ​

View source

Arguments ​

  • $limit

Protected Methods ​

MethodDescription
entryIdsBy()
fieldFinding()
findings()
modelFinding()

entryIdsBy() ​

View source

Arguments ​

  • $column

Returns ​

array<int,bool>

fieldFinding() ​

View source

Arguments ​

  • $field

Returns ​

array{id: int|null, uid: string|null, handle: string, name: string}

findings() ​

View source

Returns ​

\Illuminate\Support\Collection<int,mixed>

modelFinding() ​

View source

Arguments ​

  • $model

Returns ​

array{id: int|null, uid: string|null, handle: string, name: string}