original_string: public function searchForMods($params)
      {
          $query = static::find();
  
          $dataProvider = new ActiveDataProvider([
              'query' => $query,
              'pagination' => [
                  'defaultPageSize' => 10,
                  'forcePageParam' => false
              ],
          ]);
  
          $dataProvider->sort->defaultOrder = ['name' => SORT_ASC];
  
          if (!($this->load($params) && $this->validate())) {
              return $dataProvider;
          }
  
          $query->andFilterWhere(['name' => $this->name]);
  
          return $dataProvider;
      }
code: public function searchForMods($params)
      {
          $query = static::find();
  
          $dataProvider = new ActiveDataProvider([
              'query' => $query,
              'pagination' => [
                  'defaultPageSize' => 10,
                  'forcePageParam' => false
              ],
          ]);
  
          $dataProvider->sort->defaultOrder = ['name' => SORT_ASC];
  
          if (!($this->load($params) && $this->validate())) {
              return $dataProvider;
          }
  
          $query->andFilterWhere(['name' => $this->name]);
  
          return $dataProvider;
      }
code_tokens: public function searchForMods ( $ params ) { $ query = static :: find ( ) ; $ dataProvider = new ActiveDataProvider ( [ 'query' => $ query , 'pagination' => [ 'defaultPageSize' => 10 , 'forcePageParam' => false ] , ] ) ; $ dataProvider -> sort -> defaultOrder = [ 'name' => SORT_ASC ] ; if ( ! ( $ this -> load ( $ params ) && $ this -> validate ( ) ) ) { return $ dataProvider ; } $ query -> andFilterWhere ( [ 'name' => $ this -> name ] ) ; return $ dataProvider ; }
docstring: Searches for forums on admin page.
  @param type $params
  @return ActiveDataProvider
docstring_tokens: Searches for forums on admin page .