| @@ 102-107 (lines=6) @@ | ||
| 99 | if ($event->getSubject() === self::SUBJECT_ADDED) { |
|
| 100 | $event->setParsedSubject($this->l->t('Added to favorites')) |
|
| 101 | ->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/starred.svg'))); |
|
| 102 | } else if ($event->getSubject() === self::SUBJECT_REMOVED) { |
|
| 103 | $event->setParsedSubject($this->l->t('Removed from favorites')) |
|
| 104 | ->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/star.svg'))); |
|
| 105 | } else { |
|
| 106 | throw new \InvalidArgumentException(); |
|
| 107 | } |
|
| 108 | ||
| 109 | return $event; |
|
| 110 | } |
|
| @@ 140-146 (lines=7) @@ | ||
| 137 | 'email' => $parsedParameters['email'] |
|
| 138 | ]) |
|
| 139 | ->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/share.svg'))); |
|
| 140 | } else if ($event->getSubject() === self::SUBJECT_SHARED_EMAIL_PASSWORD_SEND_SELF) { |
|
| 141 | $event->setParsedSubject($this->l->t('Password for mail share send to you')) |
|
| 142 | ->setRichSubject($this->l->t('Password for mail share send to you')) |
|
| 143 | ->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/share.svg'))); |
|
| 144 | } else { |
|
| 145 | throw new \InvalidArgumentException(); |
|
| 146 | } |
|
| 147 | ||
| 148 | return $event; |
|
| 149 | } |
|