Class humhub\modules\notification\renderer\MailRenderer

Inheritancehumhub\modules\notification\renderer\MailRenderer » humhub\components\rendering\MailRenderer » humhub\components\rendering\DefaultViewPathRenderer » humhub\components\rendering\ViewPathRenderer » yii\base\BaseObject
Implementshumhub\components\rendering\Renderer

The MailTargetRenderer is used to render Notifications for the MailTarget.

A BaseNotification can overwrite the default view and layout by setting a specific $viewName and defining the following files:

Overwrite default html view for this notification:

See also humhub\modules\notification\targets\MailTarget.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getViewFile() Returnes the viewFile of the given Viewable. humhub\components\rendering\ViewPathRenderer
getViewPath() Returns the directory containing the view files for this event. humhub\components\rendering\ViewPathRenderer
render() Renders the viewable by searching the viewable's viewName within the given viewPath. humhub\components\rendering\ViewPathRenderer
renderText() Renders the text mail content for the given $viewable. humhub\components\rendering\MailRenderer
renderView() Helper function for rendering a Viewable with the given viewParams. humhub\components\rendering\ViewPathRenderer

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
suffix() Checks if the given $viewName has a file suffix or not. humhub\components\rendering\ViewPathRenderer

Property Details

$defaultTextView public property

Fallback text view.

public string $defaultTextView '@notification/views/mails/plaintext/default.php'
$defaultTextViewPath public property

Fallback text view path.

public string $defaultTextViewPath '@notification/views/mails/plaintext'
$defaultView public property

Fallback view

public string $defaultView '@notification/views/mails/default.php'
$defaultViewPath public property

Fallback view path

public string $defaultViewPath '@notification/views/mails'