protected function convertTagsToString($tags) { if (is_string($tags)) { return $tags; } return implode('|', $tags); }