init() public méthode

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