protected function formatMessage(\stdClass $event)
    {
        $message = false;

        // Check for required properties.
        if (isset($event->message, $event->variables)) {
            // Messages without variables or user specified text.
            if ($event->variables === 'N;') {
                return $event->message;
            }

            return $this->stringTranslation->translate(
                $event->message,
                unserialize($event->variables)
            );
        }

        return $message;
    }
protected function formatMessage(\stdClass $event)
    {
        $message = false;

        // Check for required properties.
        if (isset($event->message, $event->variables)) {
            // Messages without variables or user specified text.
            if ($event->variables === 'N;') {
                return $event->message;
            }

            return $this->stringTranslation->translate(
                $event->message,
                unserialize($event->variables)
            );
        }

        return $message;
    }
protected function formatMessage ( \ stdClass $ event ) { $ message = false ; // Check for required properties. if ( isset ( $ event -> message , $ event -> variables ) ) { // Messages without variables or user specified text. if ( $ event -> variables === 'N;' ) { return $ event -> message ; } return $ this -> stringTranslation -> translate ( $ event -> message , unserialize ( $ event -> variables ) ) ; } return $ message ; }
Formats a database log message.

@param $event
The record from the watchdog table. The object properties are: wid, uid,
severity, type, timestamp, message, variables, link, name.

@return string|false
The formatted log message or FALSE if the message or variables properties
are not set.
Formats a database log message .