Exemple #1
0
 /**
  * Pre-process the template source, making all registered TemplateProcessors
  * do what they need to do with the template source before it is parsed.
  *
  * @param string $templateSource
  * @return string
  */
 protected function preProcessTemplateSource($templateSource)
 {
     foreach ($this->renderingContext->getTemplateProcessors() as $templateProcessor) {
         $templateSource = $templateProcessor->preProcessSource($templateSource);
     }
     return $templateSource;
 }