public function addMessage(AddMessageEvent $event)
    {
        /** @var Message $messageAdapter */
        $messageAdapter = $this->framework->getAdapter(Message::class);

        $messageAdapter->add($event->getContent(), 'TL_' . strtoupper($event->getType()));
    }
public function addMessage(AddMessageEvent $event)
    {
        /** @var Message $messageAdapter */
        $messageAdapter = $this->framework->getAdapter(Message::class);

        $messageAdapter->add($event->getContent(), 'TL_' . strtoupper($event->getType()));
    }
public function addMessage ( AddMessageEvent $ event ) { /** @var Message $messageAdapter */ $ messageAdapter = $ this -> framework -> getAdapter ( Message :: class ) ; $ messageAdapter -> add ( $ event -> getContent ( ) , 'TL_' . strtoupper ( $ event -> getType ( ) ) ) ; }
Add a message to the contao message array in the session.

@param AddMessageEvent $event The event.

@return void
Add a message to the contao message array in the session .