public function visitLegacyNode(LegacyNode $node) { $moduleId = $node->getModuleId(); if ($this->isNotRendered($moduleId)) { $node->renderModuleHead(); $this->markAsRendered($moduleId); } $this->visitChildNodes($node); }
/** * @param LegacyNode $node * * @return string */ protected function getLegacyModuleHeaderOutput(LegacyNode $node) { ob_start(); $node->renderModuleHead(); return ob_get_clean(); }