/** * @param AbstractRenderNode $node */ protected function createNodeContent(AbstractRenderNode $node) { $this->content = $node->getUnit()->toArray(); }
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(); } }