obj = $obj; } /** * Returns the Twig content string. * This step is cached internally by Twig. */ public function getSource($name) { $content = $this->obj->getTwigContent(); /* * Extensibility */ $dataHolder = (object) ['content' => $content]; Event::fire('cms.template.processTwigContent', [$this->obj, $dataHolder]); return $dataHolder->content; } /** * Returns the Twig cache key. */ public function getCacheKey($name) { return $this->obj->getFullPath(); } /** * Determines if the content is fresh. */ public function isFresh($name, $time) { return $this->obj->isLoadedFromCache(); } }