public function getCachedContent() { if ($this->cachedData === null) { $cachedData = $this->viewElementsGathener->getCachedData($this->getId()); if ($cachedData === false) { $this->cachedData = false; return false; } $this->viewElementsGathener->repeatGatheredData($this->view, $cachedData); $this->cachedData = parent::getCachedContent(); } return $this->cachedData; }
/** * @inheritdoc */ public function registerAssetBundle($name, $position = null) { $this->viewElementsGathener->gather(__FUNCTION__, func_get_args()); return parent::registerAssetBundle($name, $position); }