/** {@inheritdoc} */ protected function getDefaultRules() { return array_merge(['html | pjax' => ['save' => true, 'flash' => false, 'success' => ['class' => RenderAction::class, 'view' => $this->view, 'data' => function () { return $this->prepareData(); }, 'params' => function () { return ['models' => $this->collection->models, 'model' => $this->collection->first]; }]]], parent::getDefaultRules()); }
protected function getDefaultRules() { return array_merge(['html | pjax' => ['save' => false, 'flash' => false, 'success' => ['class' => RenderAction::class, 'view' => $this->getView(), 'data' => $this->data, 'params' => function () { return ['model' => $this->getSearchModel(), 'dataProvider' => $this->getDataProvider()]; }]]], parent::getDefaultRules()); }