Carew\Document::getVars PHP Method

getVars() public method

public getVars ( )
    public function getVars()
    {
        return $this->vars;
    }

Usage Example

Beispiel #1
0
 private function setTwigGlobals(Document $document)
 {
     $twigGlobals = $this->twig->getGlobals();
     $globals = $twigGlobals['carew'];
     $globals->fromArray($document->getVars());
     $globals->relativeRoot = $document->getRootPath();
     $globals->currentPath = $document->getPath();
     $globals->document = $document;
     return $this;
 }