mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
31 lines
454 B
PHP
31 lines
454 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace OCP\Capabilities;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Interface for apps to expose their available features.
|
||
|
|
*
|
||
|
|
* @since 30.0.0
|
||
|
|
*/
|
||
|
|
interface IFeature {
|
||
|
|
/**
|
||
|
|
* Returns the available features.
|
||
|
|
*
|
||
|
|
* ```php
|
||
|
|
* return [
|
||
|
|
* 'myapp' => [
|
||
|
|
* 'feature1',
|
||
|
|
* 'feature2',
|
||
|
|
* ],
|
||
|
|
* 'otherapp' => [
|
||
|
|
* 'feature3',
|
||
|
|
* ],
|
||
|
|
* ];
|
||
|
|
* ```
|
||
|
|
*
|
||
|
|
* @return array<string, list<string>>
|
||
|
|
* @since 30.0.0
|
||
|
|
*/
|
||
|
|
public function getFeatures(): array;
|
||
|
|
}
|