$query, ] ); if (!($this->load($params) && $this->validate())) { return $dataProvider; } $query->andFilterWhere( [ 'id' => $this->id, 'active' => $this->active, 'section' => $this->section, ] ); $query->andFilterWhere(['like', 'key', $this->key]) ->andFilterWhere(['like', 'value', $this->value]); return $dataProvider; } }