src/Widget.php
public function init()
    {
        parent::init();

        Html::addCssClass($this->options, 'ui');

        if (!isset($this->options['id'])) {
            $this->options['id'] = $this->getId();
        }
        $this->registerTranslations();
    }
public function init()
    {
        parent::init();

        Html::addCssClass($this->options, 'ui');

        if (!isset($this->options['id'])) {
            $this->options['id'] = $this->getId();
        }
        $this->registerTranslations();
    }
public function init ( ) { parent :: init ( ) ; Html :: addCssClass ( $ this -> options , 'ui' ) ; if ( ! isset ( $ this -> options [ 'id' ] ) ) { $ this -> options [ 'id' ] = $ this -> getId ( ) ; } $ this -> registerTranslations ( ) ; }
Initializes the widget.
This method will register the semantic ui asset bundle and the translations. If you override this method,
make sure you call the parent implementation first.
Initializes the widget . This method will register the semantic ui asset bundle and the translations . If you override this method make sure you call the parent implementation first .