record)) { $this->redirect($resource::getUrl('edit', ['record' => $this->record])); } } }