\OCP\CapabilitiesICapability

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

Summary

Methods
Constants
getCapabilities()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getCapabilities()

getCapabilities() : array

Function an app uses to return the capabilities

Returns

array —

Array containing the apps capabilities