public function afterTopicImported(TopicImportState $state, IImportTopic $topic) { if (!$topic instanceof ImportTopic) { return; } $this->doRedirect($topic->getTitle(), $state->topicWorkflow->getId()); foreach ($this->redirectsToDo as $args) { call_user_func_array(array($this, 'doRedirect'), $args); } $this->redirectsToDo = array(); }