| @@ -334,12 +334,13 @@ | ||
| 334 | 334 | /** |
| 335 | 335 | * Queue a toast. See {@see Effects::toast()}. |
| 336 | 336 | * |
| 337 | 337 | * @param string $message Text. |
| 338 | + * @param string $type Toast-type id (`error`, `success`, …), or '' for the plain toast. | |
| 338 | 339 | * @return self |
| 339 | 340 | */ |
| 340 | - public function toast( $message ) { | |
| 341 | - $this->effects->toast( $message ); | |
| 341 | + public function toast( $message, $type = '' ) { | |
| 342 | + $this->effects->toast( $message, $type ); | |
| 342 | 343 | return $this; |
| 343 | 344 | } |
| 344 | 345 | |
| 345 | 346 | /** |