/** * Renders category block associated with provided web page id * * @param string $webPageId * @return string The block */ public function renderByAssocWebPageId($webPageId) { $categoryId = $this->itemMapper->fetchCategoryIdByWebPageId($webPageId); $class = $this->categoryMapper->fetchClassById($categoryId); return $this->renderByClass($class, $webPageId); }