Nextcloud PHP API (master)

IPublicCapability extends ICapability

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

Tags
inheritdoc
since
13.0.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