Hostnet\Component\Webpack\Asset\Tracker::addTemplate PHP Method

addTemplate() private method

Adds twig templates to the tracker.
private addTemplate ( Symfony\Component\Templating\TemplateReferenceInterface $reference ) : Tracker
$reference Symfony\Component\Templating\TemplateReferenceInterface the reference to the twig template to be added.
return Tracker this instance
    private function addTemplate(TemplateReferenceInterface $reference)
    {
        if ($reference->get('engine') !== 'twig') {
            return $this;
        }
        if (false !== ($path = $this->resolvePath($reference->getPath()))) {
            $this->templates[] = $path;
            return $this->addPath($path);
        }
        return $this;
    }