public function __construct() { if ($this->wire('input')->get('test_notices')) { $this->message('Message test'); $this->message('Message test debug', Notice::debug); $this->message('Message test markup <a href="#">example</a>', Notice::allowMarkup); $this->warning('Warning test'); $this->warning('Warning test debug', Notice::debug); $this->warning('Warning test markup <a href="#">example</a>', Notice::allowMarkup); $this->error('Error test'); $this->error('Error test debug', Notice::debug); $this->error('Error test markup <a href="#">example</a>', Notice::allowMarkup); } parent::__construct(); }