public function addFlashMessage(FlashMessage $flashMessage)
    {
        $flashMessageService = GeneralUtility::makeInstance(FlashMessageService::class);
        $flashMessageQueue = $flashMessageService->getMessageQueueByIdentifier($this->messageQueueByIdentifier);
        $flashMessageQueue->enqueue($flashMessage);
    }
public function addFlashMessage(FlashMessage $flashMessage)
    {
        $flashMessageService = GeneralUtility::makeInstance(FlashMessageService::class);
        $flashMessageQueue = $flashMessageService->getMessageQueueByIdentifier($this->messageQueueByIdentifier);
        $flashMessageQueue->enqueue($flashMessage);
    }
public function addFlashMessage ( FlashMessage $ flashMessage ) { $ flashMessageService = GeneralUtility :: makeInstance ( FlashMessageService :: class ) ; $ flashMessageQueue = $ flashMessageService -> getMessageQueueByIdentifier ( $ this -> messageQueueByIdentifier ) ; $ flashMessageQueue -> enqueue ( $ flashMessage ) ; }
Adds a Flash Message to the Flash Message Queue

@param FlashMessage $flashMessage
Adds a Flash Message to the Flash Message Queue