FluidTYPO3\Flux\Core::getStaticTypoScript PHP Method

getStaticTypoScript() public static method

public static getStaticTypoScript ( ) : array
return array
    public static function getStaticTypoScript()
    {
        return self::$staticTypoScript;
    }

Usage Example

 /**
  * 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));
     }
 }
All Usage Examples Of FluidTYPO3\Flux\Core::getStaticTypoScript