Exemplo n.º 1
0
 /**
  * @param AbstractRenderNode $node
  */
 protected function createNodeContent(AbstractRenderNode $node)
 {
     $this->content = $node->getUnit()->toArray();
 }
Exemplo n.º 2
0
 public function __construct($defaultVisitor, AbstractRenderNode $unitNode, $newRenderContext)
 {
     $this->defaultVisitor = $defaultVisitor;
     $this->unitNode = $unitNode;
     $this->newRenderContext = $newRenderContext;
     $this->setWebsiteId(RenderContext::getWebsiteId());
     $this->setArray($unitNode->getUnit()->toArray());
     if ($unitNode instanceof LegacyNode) {
         $this->moduleAttributes = $unitNode->getModuleManifest();
     }
 }