Merge pull request #56745 from nextcloud/artonge/feat/files_sharing/support_priority_in_template_providers
feat(files_sharing): Support priority in public template providerspull/48692/merge
commit
5bf67fd206
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace OCP\Share;
|
||||
|
||||
use OCP\AppFramework\Attribute\Consumable;
|
||||
use OCP\AppFramework\Attribute\Implementable;
|
||||
|
||||
/**
|
||||
* Allow providers to specify a priority for selection when multiple providers can handle a share.
|
||||
*
|
||||
* @since 33.0.0
|
||||
*/
|
||||
#[Consumable(since: '33.0.0')]
|
||||
#[Implementable(since: '33.0.0')]
|
||||
interface IPublicShareTemplateProviderWithPriority {
|
||||
/**
|
||||
* Returns the priority of the provider. Lower values indicate higher priority.
|
||||
*
|
||||
* @since 33.0.0
|
||||
*/
|
||||
public function getPriority(): int;
|
||||
}
|
||||
Loading…
Reference in New Issue