Retrieve the flashMessenger helper

@return FlashMessenger
978673
protected function getFlashMessengerHelper()
    {
        if ($this->flashMessengerHelper) {
            return $this->flashMessengerHelper;
        }

        if (method_exists($this->view, 'plugin')) {
            $this->flashMessengerHelper = $this->view->plugin('flashmessenger');
        }

        if (!$this->flashMessengerHelper instanceof FlashMessenger) {
            $this->flashMessengerHelper = new FlashMessenger();
            $this->flashMessengerHelper->setView($this->getView());
        }

        return $this->flashMessengerHelper;
    }
600633
public function getMessageHandler()
    {
        if (null !== $this->messageHandler) {
            return $this->messageHandler;
        }

        return $this->messageHandler = new MessageHandler($this);
    }
363313
public function getMessageFactory()
    {
        return MessageFactory::getInstance(
            $this->streamFactory,
            $this->partStreamFilterManagerFactory,
            $this->partFilterFactory,
            $this->messageHelperService
        );
    }
644533
public function getEventsManager() {
    if (!is_object(parent::getEventsManager())) {
      $em = $this->getUserOption('eventsManager');
      if (!is_object($em)) {
        $em = new EventsManager();
      }
      $em->enablePriorities(true);
      $this->setEventsManager($em);
    }
    return parent::getEventsManager();
  }
1223993
public function getMessage()
    {
        $result = $this->message;
        if ($result === '') {
            switch ($this->state) {
                case self::STATE_PASSED:
                case self::STATE_SKIPPED:
                    break;
                case self::STATE_WARNING:
                    $result = t('The installation precondition passed with warnings.');
                    break;
                case self::STATE_FAILED:
                default:
                    $result = t('The installation precondition failed.');
                    break;
            }
        }

        return $result;
    }
706609
public function getErrorMessage()
    {
        if (array_key_exists($this->error, $this->errorMessages)) {

            return $this->errorMessages[$this->error];
        }

        return 'Unknow error';
    }
308816
private function getClassContentManager()
    {
        if (null === $this->manager) {
            $this->manager = $this->getApplication()->getContainer()->get('classcontent.manager')
                ->setBBUserToken($this->getApplication()->getBBUserToken())
            ;
        }

        return $this->manager;
    }
376485
public function getErrorMessage() {
        if($this->errorMessage) {
            return $this->errorMessage;
        }

        return sprintf(self::$defaultErrorMessagePattern, $this->getName());
    }
942314
public function getMessage()
    {
        $message = $this->message;

        if (is_array($message)) {
            $message = $this->language->translateArray($message);
        }

        return $message;
    }
811128
protected function getEscapeHtmlHelper()
    {
        if ($this->escapeHtmlHelper) {
            return $this->escapeHtmlHelper;
        }

        if (method_exists($this->view, 'plugin')) {
            $this->escapeHtmlHelper = $this->view->plugin('escapehtml');
        }

        if (!$this->escapeHtmlHelper instanceof EscapeHtml) {
            $this->escapeHtmlHelper = new EscapeHtml();
            $this->escapeHtmlHelper->setView($this->getView());
        }

        return $this->escapeHtmlHelper;
    }
116183
public function getEventManager(): EventManagerInterface
    {
        if (null === $this->events) {
            $this->setEventManager(new EventManager());
        }
        return $this->events;
    }
62280
public function getMessage()
    {
        $message = $this->messageBuilder->getMessage();

        if (!isset($message['from'])) {
            $this->setConfigFrom();
            $message = $this->messageBuilder->getMessage();
        }
        if ($this->variables) {
            $message['recipient-variables'] = json_encode($this->variables);
        }
        if (isset($this->{'o:native-send'})) {
            $message['o:native-send'] = $this->{'o:native-send'};
        }

        return $message;
    }
489253
private function getTranslatorHelper()
    {
        if(null === $this->translatorHelper) {
            $this->translatorHelper = $this->serviceLocator->get('MvcTranslator');
        }
    
        return $this->translatorHelper;
    }
695640
public function getMessage()
    {
        $message = null;

        if (isset($this->data->transactionResponse->messages)) {
            // In case of a successful transaction, a "messages" element is present
            $message = (string)$this->data->transactionResponse->messages->message->description;
        } elseif (isset($this->data->transactionResponse->errors)) {
            // In case of an unsuccessful transaction, an "errors" element is present
            $message = (string)$this->data->transactionResponse->errors->error->errorText;
        } elseif (isset($this->data->messages->message)) {
            // In case of invalid request, the top-level message provides details.
            $message = (string)$this->data->messages->message->text;
        }

        return $message;
    }
524967
protected function getLabelHelper()
    {
        if ($this->labelHelper) {
            return $this->labelHelper;
        }

        if (method_exists($this->view, 'plugin')) {
            $this->labelHelper = $this->view->plugin('form_label');
        }

        if (!$this->labelHelper instanceof FormLabel) {
            $this->labelHelper = new FormLabel();
        }

        if ($this->hasTranslator()) {
            $this->labelHelper->setTranslator(
                $this->getTranslator(),
                $this->getTranslatorTextDomain()
            );
        }

        return $this->labelHelper;
    }
453631
protected function getEscapeHtmlHelper()
    {
        if ($this->escapeHtmlHelper) {
            return $this->escapeHtmlHelper;
        }

        $this->escapeHtmlHelper = $this->view->plugin('escapehtml');

        return $this->escapeHtmlHelper;
    }
1017878
public function getflashMessageAction()
    {
        // translator service
        $translator = $this->serviceLocator->get('translator');

        // tool service
        $tool = $this->getServiceLocator()->get('MelisCoretool');
        
        // flash messenger service
        $flashMessenger = $this->getServiceLocator()->get('MelisCoreFlashMessenger');
        
        $flashMessages = Json::decode($flashMessenger->getFlashMessengerMessages());
        
        // flashMessages array, re-stored so we can apply translation to its content
        $fmArray = array();
        $fmCtr = 0;
        
        if($flashMessages)
        {
            foreach($flashMessages as $fmKey => $fmValues) {
                $title   = $translator->translate($fmValues->title);
                $message =  $translator->translate($fmValues->message);
                $fmArray[] = array(
                    'title' => ($title),
                    'message' => ($message),
                    'image' => $fmValues->image,
                    'time' => $fmValues->time,
                    'date' => $fmValues->date,
                    'date_trans' => $fmValues->date_trans,
                );
            }
        }
        
    	return new JsonModel(array(
    		'flashMessage' => $fmArray,
    	));
    }