Class humhub\modules\user\widgets\UserFollowButton

Inheritancehumhub\modules\user\widgets\UserFollowButton » yii\base\Widget
Available since version0.11

UserFollowButton

Property Details

$followLabel public property

Label for follow button (optional)

public string $followLabel null
$followOptions public property

Options for follow button

public string $followOptions = ['class' => 'btn btn-primary']
$unfollowLabel public property

Label for unfollow button (optional)

public string $unfollowLabel null
$unfollowOptions public property

Options for unfollow button

public array $unfollowOptions = ['class' => 'btn btn-info']
$user public property

Method Details

init() public method

public void init ( )
run() public method

public void run ( )