nextcloud/lib/public/Capabilities/IFeature.php
provokateurin 815fe7fb8b
feat(Capabilities): Add IFeature
Signed-off-by: provokateurin <kate@provokateurin.de>
2024-07-19 08:59:47 +02:00

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;
}