Class humhub\modules\content\widgets\WallEntryAddons

Inheritancehumhub\modules\content\widgets\WallEntryAddons » humhub\widgets\BaseStack » humhub\components\Widget » yii\base\Widget

WallEntryAddonWidget is an instance of StackWidget for wall entries.

This widget is used to add some widgets to a wall entry. e.g. Likes or Comments.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
addWidget() Adds a new widget humhub\modules\content\widgets\WallEntryAddons
getLayoutViewParams() Returns an array of view parameter used if \humhub\components\layout is set. humhub\components\Widget
init() Initializes the sidebar widget. humhub\widgets\BaseStack
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

Property Details

$object public property
$widgetOptions public property
public array $widgetOptions = []

Method Details

addWidget() public method

Adds a new widget

public void addWidget ( $className, $params = [], $options = [] )
$className string
$params array

Widget definition

$options array

Extra option array with e.g. "sortOrder"