/** * @param Category $category * @return array */ protected function getFilterOptionByCategory(Category $category) { return array('uid' => $category->getUid(), 'title' => $category->getTitle(), 'tag' => $category->getFilterOptionTag()); }