/**
* Includes static template from extensions
*
* @param array $params
* @param TemplateService $pObj
* @return void
*/
public function preprocessIncludeStaticTypoScriptSources(array &$params, TemplateService $pObj)
{
if (TRUE === isset($params['row']['root']) && TRUE === (bool) $params['row']['root']) {
$existingTemplates = GeneralUtility::trimExplode(',', $params['row']['include_static_file']);
$globalStaticTemplates = Core::getStaticTypoScript();
$staticTemplates = array_merge($globalStaticTemplates, $existingTemplates);
$params['row']['include_static_file'] = implode(',', array_unique($staticTemplates));
}
}