public function setFlash(Event $event)
    {
        unset($event->getSubject()->params['class']);
        $event->getSubject()->element = ltrim($event->getSubject()->type);
    }
public function setFlash(Event $event)
    {
        unset($event->getSubject()->params['class']);
        $event->getSubject()->element = ltrim($event->getSubject()->type);
    }
public function setFlash ( Event $ event ) { unset ( $ event -> getSubject ( ) -> params [ 'class' ] ) ; $ event -> getSubject ( ) -> element = ltrim ( $ event -> getSubject ( ) -> type ) ; }
Make sure flash messages are properly handled by BootstrapUI.FlashHelper

@param \Cake\Event\Event $event Event.
@return void
Make sure flash messages are properly handled by BootstrapUI . FlashHelper