StaticResourceHelper
class StaticResourceHelper implements ProtectedContextAwareInterface (View source)
Properties
protected ResourceManager | $resourceManager | ||
protected Service | $i18nService |
Methods
string
uri(string $packageKey, string $pathAndFilename, bool $localize = false)
Get the public uri of a package resource
string
content(string $packageKey, string $pathAndFilename, bool $localize = false)
Get the content of a package resource
string
getLocalizedResourcePath(string $packageKey, string $pathAndFilename, bool $localize = false)
Get a resource://.. url for the given arguments and apply localization if needed
bool
allowsCallOfMethod(string $methodName)
No description
Details
string
uri(string $packageKey, string $pathAndFilename, bool $localize = false)
Get the public uri of a package resource
string
content(string $packageKey, string $pathAndFilename, bool $localize = false)
Get the content of a package resource
protected string
getLocalizedResourcePath(string $packageKey, string $pathAndFilename, bool $localize = false)
Get a resource://.. url for the given arguments and apply localization if needed
bool
allowsCallOfMethod(string $methodName)
No description