kartik\social\GithubXPlugin::renderButton PHP Method

renderButton() public method

Renders the button
public renderButton ( ) : string
return string
    public function renderButton()
    {
        $setting = $this->getDefaultSetting();
        $label = empty($this->label) ? ArrayHelper::remove($setting, 'label', '') : $this->label;
        if (!$this->showCount) {
            unset($setting['data-count-api'], $setting['data-count-href']);
        }
        $setting += $this->settings + $this->options;
        return Html::tag('a', $label, $setting);
    }