AssetResolverInterface
interface AssetResolverInterface
Constants
MODULE_OVERRIDE_DIRECTORY_NAME |
The name of the subdirectory in a template asset directory in which modules assets can be overridden |
DEFAULT_TEMPLATE_NAME |
The name of the default template |
Methods
mixed
resolveAssetURL(
string $source,
string $file,
string $type,
ParserInterface $parserInterface,
array $filters = array(),
bool $debug = false,
string $declaredAssetsDirectory = null,
mixed $sourceTemplateName = false)
Generate an asset URL
mixed
resolveAssetSourcePath(
string $source,
string $templateName,
string $fileName,
ParserInterface $parserInterface)
Return an asset source file path.
Details
at line 38
mixed
resolveAssetURL(
string $source,
string $file,
string $type,
ParserInterface $parserInterface,
array $filters = array(),
bool $debug = false,
string $declaredAssetsDirectory = null,
mixed $sourceTemplateName = false)
Generate an asset URL
at line 55
mixed
resolveAssetSourcePath(
string $source,
string $templateName,
string $fileName,
ParserInterface $parserInterface)
Return an asset source file path.
A system of fallback enables file overriding. It will look for the template : - in the current template in directory /modules/{module code}/ - in the module in the current template if it exists - in the module in the default template