Neos\FluidAdaptor\Core\Parser\TemplateProcessor\NamespaceDetectionTemplateProcessor::preProcessSource PHP Method

preProcessSource() public method

Pre-process the template source before it is returned to the TemplateParser or passed to the next TemplateProcessorInterface instance.
public preProcessSource ( string $templateSource ) : string
$templateSource string
return string
    public function preProcessSource($templateSource)
    {
        $templateSource = $this->protectCDataSectionsFromParser($templateSource);
        $templateSource = $this->registerNamespacesFromTemplateSource($templateSource);
        $this->throwExceptionsForUnhandledNamespaces($templateSource);
        return $templateSource;
    }