Builder
AbstractYes
Table of Contents
Methods
- __construct() : mixed
- Builder constructor.
- attachToLanding() : void
- Assets pack must be attached only to once landing. Set ID
- createByType() : Builder
- getOutput() : array<string|int, mixed>
- Get all assets as normalized array by types
- setOutput() : mixed
- Add assets to page
Methods
__construct()
Builder constructor.
public
__construct(ResourceCollection $resources) : mixed
Parameters
- $resources : ResourceCollection
Tags
attachToLanding()
Assets pack must be attached only to once landing. Set ID
public
attachToLanding(int $lid) : void
Parameters
- $lid : int
-
- landing ID
createByType()
public
static createByType(ResourceCollection $resources, string $type) : Builder
Parameters
- $resources : ResourceCollection
-
Resources object
- $type : string
-
Builder type
Tags
Return values
BuildergetOutput()
Get all assets as normalized array by types
public
getOutput() : array<string|int, mixed>
Return values
array<string|int, mixed>setOutput()
Add assets to page
public
abstract setOutput() : mixed