/** * @return array */ protected function buildCategoryData() { $pid = (int) $this->arguments['categoryPid']; if (!array_key_exists($pid, self::$categoryDataCache)) { self::$categoryDataCache[$pid] = $this->categoryRepository->findByPid($pid); } return self::$categoryDataCache[$pid]; }
/** * @return mixed */ protected function getCategoryRecords() { return $this->categoryRepository->findByPid($this->categoryPid); }