protected function createComponentPage() { return new Multiplier(function ($pageID) { $comp = $this->pageControlFactory->create($this->pages[$pageID][0]); $comp->setCommentsCount($this->pages[$pageID]['commentsCount']); $comp->onlyIntro(); return $comp; }); }
/** * @Actions show */ protected function createComponentPage() { $comp = $this->pageFactory->create($this->page[0]); $comp->setCommentsCount($this->page['commentsCount']); return $comp; }