diff options
Diffstat (limited to 'lib/public/Contacts')
-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; } |