Skip to content

Commit 0085ee3

Browse files
Adding the icon parameter to the action method.
Adding the icon parameter to the action method, which is supported by Chrome, Opera and Microsoft Edge as well.
1 parent 5910eee commit 0085ee3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/WebPushMessage.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,12 @@ public function title($value)
9797
*
9898
* @param string $title
9999
* @param string $action
100+
* @param string $icon
100101
* @return $this
101102
*/
102-
public function action($title, $action)
103+
public function action($title, $action, $icon = null)
103104
{
104-
$this->actions[] = compact('title', 'action');
105+
$this->actions[] = compact('title', 'action', 'icon');
105106

106107
return $this;
107108
}

0 commit comments

Comments
 (0)