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

getTemplates() public method

Returns a list of twig templates that are being tracked.
public getTemplates ( ) : string[]
return string[] list of twig templates.
    public function getTemplates()
    {
        $this->boot();
        return $this->templates;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Add split points to the 'entry' section of the configuration.
  */
 private function addSplitPoints()
 {
     $split_points = [];
     foreach ($this->tracker->getTemplates() as $template_file) {
         $split_points = array_merge($split_points, $this->twig_parser->findSplitPoints($template_file));
     }
     foreach ($split_points as $id => $file) {
         $this->generator->addBlock((new CodeBlock())->set(CodeBlock::ENTRY, [self::getAliasId($id) => $file]));
     }
 }
All Usage Examples Of Hostnet\Component\Webpack\Asset\Tracker::getTemplates