Neos\FluidAdaptor\View\StandaloneView::hasTemplate PHP Method

hasTemplate() public method

Checks whether a template can be resolved for the current request
public hasTemplate ( ) : boolean
return boolean
    public function hasTemplate()
    {
        try {
            $this->baseRenderingContext->getTemplatePaths()->getTemplateSource($this->baseRenderingContext->getControllerName(), $this->baseRenderingContext->getControllerAction());
            return true;
        } catch (InvalidTemplateResourceException $e) {
            return false;
        }
    }