ICapability

interface OCP\Capabilities\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
Implemented by:OC\OCS\CoreCapabilities
Source:lib/public/Capabilities/ICapability.php#37

Methods

public OCP\Capabilities\ICapability::getCapabilities()
Function an app uses to return the capabilities
Source:lib/public/Capabilities/ICapability.php#45
Returns:array Array containing the apps capabilities
Since:8.2.0