diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2021-10-18 18:19:37 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2021-10-20 11:53:45 +0200 |
commit | 873e8e219cb7d9c0651260a3b4f138618a22f31e (patch) | |
tree | da2ffc73b5c6f9255d60f84eb2cbe73a7cdefc60 /lib/public | |
parent | 3ce3c0f117e7f5b02e55eb2c9aa0a1e7f7fe3508 (diff) | |
download | nextcloud-server-873e8e219cb7d9c0651260a3b4f138618a22f31e.tar.gz nextcloud-server-873e8e219cb7d9c0651260a3b4f138618a22f31e.zip |
Add appName to contactsmenu action API
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Contacts/ContactsMenu/IAction.php | 12 | ||||
-rw-r--r-- | lib/public/Contacts/ContactsMenu/IActionFactory.php | 6 |
2 files changed, 16 insertions, 2 deletions
diff --git a/lib/public/Contacts/ContactsMenu/IAction.php b/lib/public/Contacts/ContactsMenu/IAction.php index 1a2bc9b33b5..7c9db063975 100644 --- a/lib/public/Contacts/ContactsMenu/IAction.php +++ b/lib/public/Contacts/ContactsMenu/IAction.php @@ -60,4 +60,16 @@ interface IAction extends JsonSerializable { * @since 12.0 */ public function getPriority(); + + /** + * @param string $appName + * @since 23.0.0 + */ + public function setAppName(string $appName); + + /** + * @return string + * @since 23.0.0 + */ + public function getAppName(): string; } diff --git a/lib/public/Contacts/ContactsMenu/IActionFactory.php b/lib/public/Contacts/ContactsMenu/IActionFactory.php index f454ea117d2..393c9eb487a 100644 --- a/lib/public/Contacts/ContactsMenu/IActionFactory.php +++ b/lib/public/Contacts/ContactsMenu/IActionFactory.php @@ -35,9 +35,10 @@ interface IActionFactory { * @param string $icon full path to the action's icon * @param string $name localized name of the action * @param string $href target URL + * @param string $appName the appName registering the action * @return ILinkAction */ - public function newLinkAction($icon, $name, $href); + public function newLinkAction(string $icon, string $name, string $href, string $appName = ''): ILinkAction; /** * Construct and return a new email action for the contacts menu @@ -47,7 +48,8 @@ interface IActionFactory { * @param string $icon full path to the action's icon * @param string $name localized name of the action * @param string $email target e-mail address + * @param string $appName the appName registering the action * @return ILinkAction */ - public function newEMailAction($icon, $name, $email); + public function newEMailAction(string $icon, string $name, string $email, string $appName = ''): ILinkAction; } |