IPublicCapability
extends
ICapability
in
Minimal interface that has to be implemented for a class to be considered a capability.
Tags
Table of Contents
Methods
- getCapabilities() : array<string, array<string, mixed>>
- Function an app uses to return the capabilities
Methods
getCapabilities()
Function an app uses to return the capabilities
public
getCapabilities() : array<string, array<string, mixed>>
return [
'myapp' => [
'awesomefeature' => true,
'featureversion' => 3,
],
'morecomplex' => [
'a' => [1, 2],
],
];
Tags
Return values
array<string, array<string, mixed>> —Indexed array containing the app's capabilities