Neos.Media.Browser/Classes/Controller/AssetController.php
public function addFlashMessage($messageBody, $messageTitle = '', $severity = Message::SEVERITY_OK, array $messageArguments = [], $messageCode = null): void
    {
        if (is_string($messageBody)) {
            $messageBody = $this->translator->translateById($messageBody, $messageArguments, null, null, 'Main', 'Neos.Media.Browser') ?: $messageBody;
        }

        $messageTitle = $this->translator->translateById($messageTitle, $messageArguments, null, null, 'Main', 'Neos.Media.Browser');
        parent::addFlashMessage($messageBody, $messageTitle, $severity, $messageArguments, $messageCode);
    }
public function addFlashMessage($messageBody, $messageTitle = '', $severity = Message::SEVERITY_OK, array $messageArguments = [], $messageCode = null): void
    {
        if (is_string($messageBody)) {
            $messageBody = $this->translator->translateById($messageBody, $messageArguments, null, null, 'Main', 'Neos.Media.Browser') ?: $messageBody;
        }

        $messageTitle = $this->translator->translateById($messageTitle, $messageArguments, null, null, 'Main', 'Neos.Media.Browser');
        parent::addFlashMessage($messageBody, $messageTitle, $severity, $messageArguments, $messageCode);
    }
public function addFlashMessage ( $ messageBody , $ messageTitle = '' , $ severity = Message :: SEVERITY_OK , array $ messageArguments = [ ] , $ messageCode = null ) : void { if ( is_string ( $ messageBody ) ) { $ messageBody = $ this -> translator -> translateById ( $ messageBody , $ messageArguments , null , null , 'Main' , 'Neos.Media.Browser' ) ? : $ messageBody ; } $ messageTitle = $ this -> translator -> translateById ( $ messageTitle , $ messageArguments , null , null , 'Main' , 'Neos.Media.Browser' ) ; parent :: addFlashMessage ( $ messageBody , $ messageTitle , $ severity , $ messageArguments , $ messageCode ) ; }
Add a translated flashMessage.

@param string $messageBody The translation id for the message body.
@param string $messageTitle The translation id for the message title.
@param string $severity
@param array $messageArguments
@param integer $messageCode
@return void
Add a translated flashMessage .