protected function prepareObject($object) { $object = parent::prepareObject($object); $object->title = $this->getDisplayName(); $object->description = $this->description; $object->tags = $this->tags ? $this->tags : array(); return $object; }