code: protected function initOptions()
      {
          if ($this->modalType !== null) {
              Html::addCssClass($this->options, $this->modalType);
          }
          Html::addCssClass($this->options, 'modal');
  
          if ($this->clientOptions !== false) {
              $this->clientOptions = array_merge(['show' => false], $this->clientOptions);
          }
  
          if ($this->closeButton !== false) {
              Html::addCssClass($this->closeButton, 'modal-close');
          }
  
          if ($this->toggleButton !== false) {
              Html::addCssClass($this->toggleButton, 'modal-trigger');
              if (!isset($this->toggleButton['data-target']) && !isset($this->toggleButton['href'])) {
                  $this->toggleButton['data-target'] = $this->options['id'];
              }
          }
      }
docs: Initializes the widget options.
  This method sets the default values for various options.