Neos\Fusion\Core\Runtime::canRender PHP Метод

canRender() публичный Метод

Determine if the given TypoScript path is renderable, which means it exists and has an implementation.
public canRender ( string $typoScriptPath ) : boolean
$typoScriptPath string
Результат boolean
    public function canRender($typoScriptPath)
    {
        $typoScriptConfiguration = $this->getConfigurationForPath($typoScriptPath);
        return $this->canRenderWithConfiguration($typoScriptConfiguration);
    }

Usage Example

 /**
  * Render the view
  *
  * @return string The rendered view
  * @api
  */
 public function render()
 {
     $this->initializeTypoScriptRuntime();
     if ($this->typoScriptRuntime->canRender($this->getTypoScriptPathForCurrentRequest()) || $this->fallbackViewEnabled === false) {
         return $this->renderTypoScript();
     } else {
         return $this->renderFallbackView();
     }
 }
All Usage Examples Of Neos\Fusion\Core\Runtime::canRender