staticPageModel = StaticPage::getCachedStaticPage(StaticPageType::story); $this->historicalMilestoneModels = HistoricalMilestone::getPublishedOrdered(); } /** * Get the view / contents that represent the component. */ public function render(): View { return view('components.fo.story.historical-milestone-component', [ 'staticPageModel' => $this->staticPageModel, 'historicalMilestoneModels' => $this->historicalMilestoneModels, ]); } }