Property | Type | Description | |
---|---|---|---|
$appendTypoScriptIncludes | array | Example: array( 'resources://MyVendor.MyPackageKey/Private/TypoScript/Root.fusion', 'resources://SomeVendor.OtherPackage/Private/TypoScript/Root.fusion' ) | |
$autoIncludeConfiguration | array | ||
$autoIncludeTypoScriptPattern | string | Pattern used for determining the TypoScript root file for autoIncludes | |
$legacyAutoIncludeTypoScriptPattern | string | Legacy pattern used for determining the TypoScript root file for autoIncludes | |
$legacySiteRootTypoScriptPattern | string | Legacy pattern used for determining the TypoScript root file for a site | |
$nodeTypeManager | |||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | ||
$packageManager | Neos\Flow\Package\PackageManagerInterface | ||
$prependTypoScriptIncludes | array | Example: array( 'resources://MyVendor.MyPackageKey/Private/TypoScript/Root.fusion', 'resources://SomeVendor.OtherPackage/Private/TypoScript/Root.fusion' ) | |
$siteRootTypoScriptPattern | string | Pattern used for determining the TypoScript root file for a site | |
$typoScriptParser |
Method | Description | |
---|---|---|
createRuntime ( Neos\ContentRepository\Domain\Model\NodeInterface $currentSiteNode, |
Create a runtime for the given site node | |
getAppendTypoScriptIncludes ( ) : array | Get TypoScript resources that will be appended after the site TypoScript. | |
getMergedTypoScriptObjectTree ( Neos\ContentRepository\Domain\Model\NodeInterface $startNode ) : array | Returns a merged TypoScript object tree in the context of the given nodes | |
getPrependTypoScriptIncludes ( ) : array | Get the TypoScript resources that are included before the site TypoScript. | |
initializeObject ( ) : void | Initializes the parser | |
setAppendTypoScriptIncludes ( array $appendTypoScriptIncludes ) : void | Set TypoScript resources that should be appended after the site TypoScript, this defaults to an empty array. | |
setPrependTypoScriptIncludes ( array $prependTypoScriptIncludes ) : void | Set TypoScript resources that should be prepended before the site TypoScript, it defaults to the Neos Root.fusion TypoScript. | |
setSiteRootTypoScriptPattern ( string $siteRootTypoScriptPattern ) : void | Set the pattern for including the site root TypoScript |
Method | Description | |
---|---|---|
generateNodeTypeDefinitions ( ) : string | Generate TypoScript prototype definitions for all node types | |
generateTypoScriptForNodeType ( |
Generate a TypoScript prototype definition for a given node type | |
getTypoScriptIncludes ( array $typoScriptResources ) : string | Concatenate the given TypoScript resources with include statements | |
prepareAutoIncludeTypoScript ( ) : array | Prepares an array with TypoScript paths to auto include before the Site TypoScript. | |
readExternalTypoScriptFile ( string $pathAndFilename ) : string | Reads the TypoScript file from the given path and filename. |
public createRuntime ( Neos\ContentRepository\Domain\Model\NodeInterface $currentSiteNode, |
||
$currentSiteNode | Neos\ContentRepository\Domain\Model\NodeInterface | |
$controllerContext | ||
return |
protected generateNodeTypeDefinitions ( ) : string | ||
return | string |
protected generateTypoScriptForNodeType ( |
||
$nodeType | ||
return | string |
public getAppendTypoScriptIncludes ( ) : array | ||
return | array |
public getMergedTypoScriptObjectTree ( Neos\ContentRepository\Domain\Model\NodeInterface $startNode ) : array | ||
$startNode | Neos\ContentRepository\Domain\Model\NodeInterface | Node marking the starting point |
return | array | The merged object tree as of the given node |
public getPrependTypoScriptIncludes ( ) : array | ||
return | array |
protected getTypoScriptIncludes ( array $typoScriptResources ) : string | ||
$typoScriptResources | array | An array of TypoScript resource URIs |
return | string | A string of include statements for all resources |
public initializeObject ( ) : void | ||
return | void |
protected prepareAutoIncludeTypoScript ( ) : array | ||
return | array |
protected readExternalTypoScriptFile ( string $pathAndFilename ) : string | ||
$pathAndFilename | string | Path and filename of the TypoScript file |
return | string | The content of the .fusion file, plus one chr(10) at the end |
public setAppendTypoScriptIncludes ( array $appendTypoScriptIncludes ) : void | ||
$appendTypoScriptIncludes | array | An array of TypoScript resource URIs |
return | void |
public setPrependTypoScriptIncludes ( array $prependTypoScriptIncludes ) : void | ||
$prependTypoScriptIncludes | array | |
return | void |
public setSiteRootTypoScriptPattern ( string $siteRootTypoScriptPattern ) : void | ||
$siteRootTypoScriptPattern | string | A string for the sprintf format that takes the site package key as a single placeholder |
return | void |
protected array $appendTypoScriptIncludes | ||
return | array |
protected array $autoIncludeConfiguration | ||
return | array |
protected string $autoIncludeTypoScriptPattern | ||
return | string |
protected string $legacyAutoIncludeTypoScriptPattern | ||
return | string |
protected string $legacySiteRootTypoScriptPattern | ||
return | string |
protected NodeTypeManager,Neos\ContentRepository\Domain\Service $nodeTypeManager | ||
return |
protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager | ||
return | Neos\Flow\ObjectManagement\ObjectManagerInterface |
protected PackageManagerInterface,Neos\Flow\Package $packageManager | ||
return | Neos\Flow\Package\PackageManagerInterface |
protected array $prependTypoScriptIncludes | ||
return | array |
protected string $siteRootTypoScriptPattern | ||
return | string |