diff options
author | Jana Peper <jana.peper@nextcloud.com> | 2024-12-08 19:16:19 +0100 |
---|---|---|
committer | janepie <49834966+janepie@users.noreply.github.com> | 2024-12-18 18:32:34 +0100 |
commit | 8cac92665d78304aaeb5e9b521f371960175d3df (patch) | |
tree | 22fded9bbec9a6fc896cc8df3b451b4ee04572bc /lib/public | |
parent | 32b57e7b4120043c1f21ba881914e61e24d8f2a5 (diff) | |
download | nextcloud-server-8cac92665d78304aaeb5e9b521f371960175d3df.tar.gz nextcloud-server-8cac92665d78304aaeb5e9b521f371960175d3df.zip |
feat: filter disabled apps in task types requests
Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/TaskProcessing/IManager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/TaskProcessing/IManager.php b/lib/public/TaskProcessing/IManager.php index 1b59bb12ad4..a4ce9e8bbbe 100644 --- a/lib/public/TaskProcessing/IManager.php +++ b/lib/public/TaskProcessing/IManager.php @@ -46,10 +46,11 @@ interface IManager { public function getPreferredProvider(string $taskTypeId); /** + * @param bool $showDisabled if false, disabled task types will be filtered * @return array<string, array{name: string, description: string, inputShape: ShapeDescriptor[], inputShapeEnumValues: ShapeEnumValue[][], inputShapeDefaults: array<array-key, numeric|string>, optionalInputShape: ShapeDescriptor[], optionalInputShapeEnumValues: ShapeEnumValue[][], optionalInputShapeDefaults: array<array-key, numeric|string>, outputShape: ShapeDescriptor[], outputShapeEnumValues: ShapeEnumValue[][], optionalOutputShape: ShapeDescriptor[], optionalOutputShapeEnumValues: ShapeEnumValue[][]}> * @since 30.0.0 */ - public function getAvailableTaskTypes(): array; + public function getAvailableTaskTypes(bool $showDisabled = false): array; /** * @param Task $task The task to run |