Class humhub\widgets\LayoutAddons

Inheritancehumhub\widgets\LayoutAddons » humhub\widgets\BaseStack » humhub\components\Widget » yii\base\Widget
Available since version1.1

LayoutAddons are inserted at the end of all layouts (standard or login).

Public Methods

Hide inherited methods

MethodDescriptionDefined By
addWidget() Adds a new widget humhub\widgets\BaseStack
getLayoutViewParams() Returns an array of view parameter used if \humhub\components\layout is set. humhub\components\Widget
init() Initializes the sidebar widget. humhub\widgets\LayoutAddons
process() Process is a wrapper for the run method humhub\components\Widget
removeWidget() Removes a widget from the stack humhub\widgets\BaseStack
run() Runs the Navigation humhub\widgets\BaseStack
widget() Creates a widget instance and runs it. humhub\components\Widget

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
getWidgets() Returns all widgets by sortorder humhub\widgets\BaseStack


Hide inherited events

EventTypeDescriptionDefined By
EVENT_CREATE humhub\libs\WidgetCreateEvent An event raised before creating a widget. humhub\components\Widget


Hide inherited constants

ConstantValueDescriptionDefined By
EVENT_INIT 'init' humhub\widgets\BaseStack
EVENT_RUN 'run' humhub\widgets\BaseStack

Method Details

init() public method

Initializes the sidebar widget.

public void init ( )