original_string: public function checkboxList($items, $options = [])
      {
          $this->template = "{icon}\n{label}\n{input}\n{hint}\n{error}";
          if ($this->form->validationStateOn === ActiveForm::VALIDATION_STATE_ON_INPUT) {
              $this->addErrorClassIfNeeded($options);
          }
  
          Html::addCssClass($this->labelOptions, ['checkboxlist-label' => 'label-checkbox-list']);
  
          $this->addAriaAttributes($options);
          $this->parts['{input}'] = Html::activeCheckboxList($this->model, $this->attribute, $items, $options);
  
          return $this;
      }
code: public function checkboxList($items, $options = [])
      {
          $this->template = "{icon}\n{label}\n{input}\n{hint}\n{error}";
          if ($this->form->validationStateOn === ActiveForm::VALIDATION_STATE_ON_INPUT) {
              $this->addErrorClassIfNeeded($options);
          }
  
          Html::addCssClass($this->labelOptions, ['checkboxlist-label' => 'label-checkbox-list']);
  
          $this->addAriaAttributes($options);
          $this->parts['{input}'] = Html::activeCheckboxList($this->model, $this->attribute, $items, $options);
  
          return $this;
      }
code_tokens: public function checkboxList ( $ items , $ options = [ ] ) { $ this -> template = "{icon}\n{label}\n{input}\n{hint}\n{error}" ; if ( $ this -> form -> validationStateOn === ActiveForm :: VALIDATION_STATE_ON_INPUT ) { $ this -> addErrorClassIfNeeded ( $ options ) ; } Html :: addCssClass ( $ this -> labelOptions , [ 'checkboxlist-label' => 'label-checkbox-list' ] ) ; $ this -> addAriaAttributes ( $ options ) ; $ this -> parts [ '{input}' ] = Html :: activeCheckboxList ( $ this -> model , $ this -> attribute , $ items , $ options ) ; return $ this ; }
docstring: Renders a list of checkboxes.
  A checkbox list allows multiple selections. As a result, the corresponding submitted value is an array.
  The selection of the checkbox list is taken from the value of the model attribute.
  @param array $items the data item used to generate the checkboxes.
  The array values are the labels, while the array keys are the corresponding checkbox values.
  @param array $options options (name => config) for the checkbox list.
  For the list of available options please refer to the `$options` parameter of [[\macgyer\yii2materializecss\lib\Html::activeCheckboxList()]].
  @return $this the field object itself.
docstring_tokens: Renders a list of checkboxes . A checkbox list allows multiple selections . As a result the corresponding submitted value is an array . The selection of the checkbox list is taken from the value of the model attribute .