/** * Adds warning (block) alert to session flash bag * * @param string $message */ public function addWarning($message) { $this->alertManager->addAlert(new Alert(AlertInterface::WARNING_ALERT, $message)); }
/** * @param AlertManagerInterface $alertManager */ public function __construct(AlertManagerInterface $alertManager) { $this->alerts = $alertManager->getAlerts(); }