macgyer\yii2materializecss\widgets\Alert::renderHtml PHP Method

renderHtml() private method

Renders a single flash message.
private renderHtml ( string $message, array $options = [] ) : string
$message string the content of the message
$options array the HTML attributes for the container tag
return string
    private function renderHtml($message, $options = [])
    {
        $html = Html::beginTag('div', $options);
        $html .= '<div class="card-panel">';
        $html .= $message;
        $html .= '</div>';
        $html .= Html::endTag('div');
        return $html;
    }