ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Container.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\UI\Implementation\Component\ComponentHelper;
25
27{
28 use ComponentHelper;
29
33 protected array $toasts = [];
34
35 public function getToasts(): array
36 {
37 return $this->toasts;
38 }
39
41 {
42 $clone = clone $this;
43 $clone->toasts[] = $toast;
44 return $clone;
45 }
46
47 public function withoutToasts(): Container
48 {
49 $clone = clone $this;
50 $clone->toasts = [];
51 return $clone;
52 }
53}
withAdditionalToast(ComponentInterface\Toast $toast)
Definition: Container.php:40