IPublicCapability extends ICapability
Minimal interface that has to be implemented for a class to be considered a capability.
In an application use: $this->getContainer()->registerCapability('OCA\MY_APP\Capabilities'); To register capabilities.
The class 'OCA\MY_APP\Capabilities' must then implement ICapability
Tags
Table of Contents
- getCapabilities() : array
- Function an app uses to return the capabilities
Methods
getCapabilities()
Function an app uses to return the capabilities
public
getCapabilities() : array
Tags
Return values
array —Array containing the apps capabilities