ILIAS  release_8 Revision v8.24
Toast.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22
30
36{
40 public function getTitle();
41
42 public function withDescription(string $description): Toast;
43
44 public function getDescription(): string;
45
46 public function withAdditionalLink(Link $link): Toast;
47
48 public function withoutLinks(): Toast;
49
53 public function getLinks(): array;
54
58 public function withAction(string $action): Toast;
59
60 public function getAction(): string;
61
62 public function getIcon(): Icon;
63
67 public function initSignals(): void;
68
72 public function getShowSignal(): Signal;
73}
A component is the most general form of an entity in the UI.
Definition: Component.php:28
Interface to be extended by components that have the possibility to bind to Javascript.
This describes how an icon could be modified during construction of UI.
Definition: Icon.php:29
getShowSignal()
Get the signal to show this toast in the frontend.
withAction(string $action)
Create a copy of this toast with an url, which is called asynchronous when the user interact with the...
withDescription(string $description)
initSignals()
Init the default signals.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Container.php:21
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.