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