Class humhub\modules\content\widgets\WallEntryControlLink

Inheritancehumhub\modules\content\widgets\WallEntryControlLink » humhub\components\Widget » yii\base\Widget
Subclasseshumhub\modules\content\widgets\MoveContentLink, humhub\modules\topic\widgets\ContentTopicButton
Available since version1.2

Generic WallEntryControlLink.


Hide inherited events

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

Property Details

$action public property

Link action

public string $action null
$actionUrl public property

Link action-url

public string $actionUrl null
$icon public property
public string $icon null
$label public property

Link label

public string $label null
$options public property

Link html options

public [] $options = []

Method Details

getActionUrl() public method (available since version 1.3)

public string|null getActionUrl ( )
return string|null

Action url

getIcon() public method

public string getIcon ( )
return string

Link icon

getLabel() public method

public string getLabel ( )
return string

Link label

init() public method

public void init ( )
preventRender() public method

This function may contain validation logic as permission checks.

public boolean preventRender ( )
return boolean

True if this link should be rendered false if not

renderLink() protected method

protected string renderLink ( )
return string

Renders the actual link

renderLinkText() protected method

protected string renderLinkText ( )
return string

Renders the link text with icon

run() public method

public void run ( )