19 declare(strict_types=1);
32 class Toast implements ComponentInterface\Toast
79 $new->links[] = $link;
117 $this->signal = $this->signal_generator->create();
withAdditionalLink(Link $link)
__construct($title, Icon $icon, SignalGeneratorInterface $signal_generator)
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...
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
withDescription(string $description)
SignalGeneratorInterface $signal_generator
initSignals()
Init the default signals.