diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-09-01 12:09:39 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-09-08 09:01:01 +0200 |
commit | 21b83dc730c9eebd9eb4d8c9944f680514eb2121 (patch) | |
tree | 81e22dd22b63c7520ca6a0e13714bdc77f1304dc /lib | |
parent | 913e2e9ae67de805d99039105c634c843009345e (diff) | |
download | nextcloud-server-21b83dc730c9eebd9eb4d8c9944f680514eb2121.tar.gz nextcloud-server-21b83dc730c9eebd9eb4d8c9944f680514eb2121.zip |
Allow getting the request type
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/notification/action.php | 8 | ||||
-rw-r--r-- | lib/public/notification/iaction.php | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/private/notification/action.php b/lib/private/notification/action.php index 2f7c1a5b5f4..08f3d50bac2 100644 --- a/lib/private/notification/action.php +++ b/lib/private/notification/action.php @@ -122,6 +122,14 @@ class Action implements IAction { } /** + * @return string + * @since 8.2.0 + */ + public function getRequestType() { + return $this->requestType; + } + + /** * @param string $icon * @return $this * @throws \InvalidArgumentException if the icon is invalid diff --git a/lib/public/notification/iaction.php b/lib/public/notification/iaction.php index db60f6cedbb..64b95bdb5ad 100644 --- a/lib/public/notification/iaction.php +++ b/lib/public/notification/iaction.php @@ -76,6 +76,12 @@ interface IAction { public function getLink(); /** + * @return string + * @since 8.2.0 + */ + public function getRequestType(); + + /** * @param string $icon * @return $this * @throws \InvalidArgumentException if the icon is invalid |