TypeManagerInterface
in
Table of Contents
Methods
- getTypePhrase() : string|null
- hasFeature() : bool
- hasSetting() : bool
- isActive() : bool
- makeType() : mixed|false
- Create or update an item type.
- refresh() : void
- Refresh cache.
Methods
getTypePhrase()
public
getTypePhrase(string $type) : string|null
Parameters
- $type : string
Return values
string|nullhasFeature()
public
hasFeature(string $type, string $feature) : bool
Parameters
- $type : string
- $feature : string
Return values
boolhasSetting()
public
hasSetting(string $type, string $feature) : bool
Parameters
- $type : string
- $feature : string
Return values
boolisActive()
public
isActive(string $type) : bool
Parameters
- $type : string
Return values
boolmakeType()
Create or update an item type.
public
makeType(array<string, mixed> $data) : mixed|false
Note: this method won't purge cache. Please purge cache manually.
Parameters
- $data : array<string, mixed>
Return values
mixed|falserefresh()
Refresh cache.
public
refresh() : void