init() public method

Initializes the widget.
public init ( )
Ejemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     $this->view->registerCss('.y2u-social-connects .auth-clients{margin:0;padding:0}');
     parent::init();
 }
Ejemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     if (count($this->getClients()) == 0) {
         return;
     } else {
         return parent::init();
     }
 }
Ejemplo n.º 3
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->setBaseAuthUrl([Module::URL_ROUTE_CLIENT_AUTH]);
 }
Ejemplo n.º 4
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     $view = Yii::$app->getView();
     AuthAsset::register($view);
     parent::init();
 }