yii\authclient\widgets\AuthChoice::run PHP Method

run() public method

Runs the widget.
public run ( ) : string
return string rendered HTML.
    public function run()
    {
        $content = '';
        if ($this->autoRender) {
            $content .= $this->renderMainContent();
        }
        $content .= Html::endTag('div');
        return $content;
    }

Usage Example

Beispiel #1
0
 /**
  * @inheritdoc
  */
 public function run()
 {
     if (count($this->getClients()) == 0) {
         return;
     } else {
         return parent::run();
     }
 }