Neos\Neos\Domain\Service\TypoScriptService::setAppendTypoScriptIncludes PHP Method

setAppendTypoScriptIncludes() public method

Set TypoScript resources that should be appended after the site TypoScript, this defaults to an empty array.
public setAppendTypoScriptIncludes ( array $appendTypoScriptIncludes ) : void
$appendTypoScriptIncludes array An array of TypoScript resource URIs
return void
    public function setAppendTypoScriptIncludes(array $appendTypoScriptIncludes)
    {
        $this->appendTypoScriptIncludes = $appendTypoScriptIncludes;
    }

Usage Example

Example #1
0
 /**
  * Create a TypoScript runtime with the test base TypoScript and an optional additional fixture
  *
  * @param string $additionalTypoScriptFile
  * @return \Neos\Fusion\Core\Runtime
  */
 protected function createRuntimeWithFixtures($additionalTypoScriptFile = null)
 {
     $typoScriptService = new TypoScriptService();
     $typoScriptService->setSiteRootTypoScriptPattern(__DIR__ . '/Fixtures/BaseTypoScript.fusion');
     if ($additionalTypoScriptFile !== null) {
         $typoScriptService->setAppendTypoScriptIncludes(array($additionalTypoScriptFile));
     }
     $controllerContext = $this->buildMockControllerContext();
     $runtime = $typoScriptService->createRuntime($this->node->getParent(), $controllerContext);
     return $runtime;
 }