public function getView() { $view = new TopicView(); $view->defined = true; $view->identifier = $this->id; $view->name = $this->title; $view->value = sprintf('%s:%s', $this->title, $this->locale); return $view; }