19 declare(strict_types=1);
61 $this->renderer_factory->getRenderer(StandardToastItem::class),
75 return new ToastAction($identifier, $title, $action);
This describes how an icon could be modified during construction of UI.
Interface IdentificationInterface.
action(string $identifier, string $title, \Closure $action)
A ToastAction leads into the rendered toast to a link that can be clicked by the user.
standard(IdentificationInterface $identification, string $title, ?Icon $icon=null)
Your Toasts shiuld provide Callables which are executed on some events: onShow, onClose, onVanish.
__construct(ToastRendererFactory $renderer_factory)
ToastRendererFactory $renderer_factory