Neos\Fusion\Core\Runtime::throwExceptionForUnrenderablePathIfNeeded PHP Méthode

throwExceptionForUnrenderablePathIfNeeded() protected méthode

Checks and throws an exception for an unrenderable path.
protected throwExceptionForUnrenderablePathIfNeeded ( string $typoScriptPath, array $typoScriptConfiguration, string $behaviorIfPathNotFound )
$typoScriptPath string The TypoScript path that cannot be rendered
$typoScriptConfiguration array
$behaviorIfPathNotFound string One of the BEHAVIOR_* constants
    protected function throwExceptionForUnrenderablePathIfNeeded($typoScriptPath, $typoScriptConfiguration, $behaviorIfPathNotFound)
    {
        if (isset($typoScriptConfiguration['__objectType'])) {
            $objectType = $typoScriptConfiguration['__objectType'];
            throw new Exceptions\MissingTypoScriptImplementationException(sprintf("The TypoScript object at path `%s` could not be rendered:\n\t\t\t\t\tThe TypoScript object `%s` is not completely defined (missing property `@class`).\n\t\t\t\t\tMost likely you didn't inherit from a basic object.\n\t\t\t\t\tFor example you could add the following line to your TypoScript:\n\t\t\t\t\t`prototype(%s) < prototype(Neos.Fusion:Template)`", $typoScriptPath, $objectType, $objectType), 1332493995);
        }
        if ($behaviorIfPathNotFound === self::BEHAVIOR_EXCEPTION) {
            throw new Exceptions\MissingTypoScriptObjectException(sprintf('No TypoScript object found in path "%s"
					Please make sure to define one in your TypoScript configuration.', $typoScriptPath), 1332493990);
        }
    }