pushToStash('articles', $this->getArticles()); } /** * @throws GuzzleException */ private function getArticles(): array { $return = []; foreach ((new CockpitApi())->getArticles() as $article) { $return[] = $article->getTeaserData(); } return $return; } protected function getTemplate(): string { return '04_templates/t-home/t-home.twig'; } }