gui\Application::alert PHP Method

alert() public method

Shows an alert dialog
public alert ( mixed $message, string $title = '' ) : void
$message mixed Array or String message to display
$title string Title of the alert
return void
    public function alert($message, $title = '')
    {
        if (is_array($message)) {
            $message = implode('\\n', $message);
        }
        $this->sendCommand('showMessage', [$message, $title], function ($result) {
            // Dummy
        });
    }