ResourceUtility
Table of Contents
Methods
- getAdditionalResourcesForModule() : array<string|int, mixed>
- getAdditionalResourcesForModules() : array{js: string, css: string}
- Get additional resources (css, js) from modules and merge it to one array - returns an array of full html tags
- getResources() : array<string|int, mixed>
- Return a string with tags for main admin panel resources
- getAdminPanelStylesheet() : string
- Returns a link tag with the admin panel stylesheet defined using TBE_STYLES
- getCssTag() : string
- Get a css tag for file - with absolute web path resolving
- getJsTag() : string
- Get a script tag for JavaScript with absolute paths
Methods
getAdditionalResourcesForModule()
public
static getAdditionalResourcesForModule(ResourceProviderInterface $module) : array<string|int, mixed>
Parameters
- $module : ResourceProviderInterface
Return values
array<string|int, mixed>getAdditionalResourcesForModules()
Get additional resources (css, js) from modules and merge it to one array - returns an array of full html tags
public
static getAdditionalResourcesForModules(array<string|int, ModuleInterface> $modules) : array{js: string, css: string}
Parameters
- $modules : array<string|int, ModuleInterface>
Return values
array{js: string, css: string}getResources()
Return a string with tags for main admin panel resources
public
static getResources() : array<string|int, mixed>
Return values
array<string|int, mixed>getAdminPanelStylesheet()
Returns a link tag with the admin panel stylesheet defined using TBE_STYLES
protected
static getAdminPanelStylesheet() : string
Return values
stringgetCssTag()
Get a css tag for file - with absolute web path resolving
protected
static getCssTag(string $cssFileLocation) : string
Parameters
- $cssFileLocation : string
Return values
stringgetJsTag()
Get a script tag for JavaScript with absolute paths
protected
static getJsTag(string $jsFileLocation) : string
Parameters
- $jsFileLocation : string