original_string: public function dropDownList($items, $options = [])
      {
          $view = $this->form->view;
          MaterializePluginAsset::register($view);
          $id = $this->getInputId();
  
          $js = "M.FormSelect.init(document.querySelector('#$id'))";
          $view->registerJs($js);
  
          return parent::dropDownList($items, $options);
      }
code: public function dropDownList($items, $options = [])
      {
          $view = $this->form->view;
          MaterializePluginAsset::register($view);
          $id = $this->getInputId();
  
          $js = "M.FormSelect.init(document.querySelector('#$id'))";
          $view->registerJs($js);
  
          return parent::dropDownList($items, $options);
      }
code_tokens: public function dropDownList ( $ items , $ options = [ ] ) { $ view = $ this -> form -> view ; MaterializePluginAsset :: register ( $ view ) ; $ id = $ this -> getInputId ( ) ; $ js = "M.FormSelect.init(document.querySelector('#$id'))" ; $ view -> registerJs ( $ js ) ; return parent :: dropDownList ( $ items , $ options ) ; }
docstring: Renders a drop-down list.
  
  @param array $items the option data items
  @param array $options the tag options in terms of name-value pairs.
  
  @return $this the field object itself.
  
  @see http://www.yiiframework.com/doc-2.0/yii-widgets-activefield.html#dropDownList()-detail
docstring_tokens: Renders a drop - down list .