mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 17:52:02 -04:00
30 lines
454 B
PHP
30 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;
|
|
}
|