ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
Container.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
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 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Container.php:21
withAdditionalToast(ComponentInterface\Toast $toast)
Definition: Container.php:40
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Container.php:21