src/Twig/NcrExtension.php
public function preloadNode($ref, string $namespace = NcrPreloader::DEFAULT_NAMESPACE): void
    {
        $nodeRef = $this->toNodeRef($ref);
        if (!$nodeRef instanceof NodeRef) {
            return;
        }

        $this->ncrPreloader->addNodeRef($nodeRef, $namespace);
    }
public function preloadNode($ref, string $namespace = NcrPreloader::DEFAULT_NAMESPACE): void
    {
        $nodeRef = $this->toNodeRef($ref);
        if (!$nodeRef instanceof NodeRef) {
            return;
        }

        $this->ncrPreloader->addNodeRef($nodeRef, $namespace);
    }
public function preloadNode ( $ ref , string $ namespace = NcrPreloader :: DEFAULT_NAMESPACE ) : void { $ nodeRef = $ this -> toNodeRef ( $ ref ) ; if ( ! $ nodeRef instanceof NodeRef ) { return ; } $ this -> ncrPreloader -> addNodeRef ( $ nodeRef , $ namespace ) ; }
Preloads a node so it can optionally be rendered later.

@param NodeRef|MessageRef|string $ref
@param string                    $namespace
Preloads a node so it can optionally be rendered later .