You are here

public function WatchdogEntity::getMessage in Better Watchdog UI 7

Same name and namespace in other branches
  1. 8 better_watchdog_ui_entity/better_watchdog_ui_entity.module \WatchdogEntity::getMessage()
  2. 7.3 better_watchdog_ui_entity/better_watchdog_ui_entity.module \WatchdogEntity::getMessage()
  3. 7.2 better_watchdog_ui_entity/better_watchdog_ui_entity.module \WatchdogEntity::getMessage()

Get watchdog entry message.

File

better_watchdog_ui_entity/better_watchdog_ui_entity.module, line 305
Provides a basic wrapper to database log entries, so they can be accessed as entities.

Class

WatchdogEntity
Watchdog class.

Code

public function getMessage() {
  $replacement = unserialize($this->variables);
  return html_entity_decode(strip_tags($replacement ? format_string($this->message, $replacement) : $this->message), ENT_QUOTES);
}