Nextcloud PHP API (master)

ICapability

Minimal interface that has to be implemented for a class to be considered a capability.

In an application use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerCapability to register capabilities.

Tags
since
8.2.0

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
since
8.2.0
Return values
array<string, array<string, mixed>>

Indexed array containing the app's capabilities


        
On this page

Search results