SetupThemeResources
extends AbstractHelper
in package
View helper for loading theme-related resources.
Tags
Table of Contents
- $container : ResourceContainer
- Theme resource container
- __construct() : mixed
- Constructor
- __invoke() : void
- Set up items based on contents of theme resource container.
- addLinks() : void
- Add links to header.
- addMetaTags() : void
- Add meta tags to header.
- addScripts() : void
- Add scripts to header or footer.
Properties
$container
Theme resource container
protected
ResourceContainer
$container
Methods
__construct()
Constructor
public
__construct(ResourceContainer $container) : mixed
Parameters
- $container : ResourceContainer
-
Theme resource container
Return values
mixed —__invoke()
Set up items based on contents of theme resource container.
public
__invoke([bool $partial = false ]) : void
Parameters
- $partial : bool = false
-
Whether rendering an HTML snippet instead of a full page
Return values
void —addLinks()
Add links to header.
protected
addLinks([bool $partial = false ]) : void
Parameters
- $partial : bool = false
-
Whether rendering an HTML snippet instead of a full page
Return values
void —addMetaTags()
Add meta tags to header.
protected
addMetaTags() : void
Return values
void —addScripts()
Add scripts to header or footer.
protected
addScripts() : void