AssetsDto
in package
FinalYes
Tags
Table of Contents
Properties
- $bodyContents : array<string|int, AssetDto>
- $cssAssets : array<string|int, AssetDto>
- $headContents : array<string|int, AssetDto>
- $jsAssets : array<string|int, AssetDto>
- $webpackEncoreAssets : array<string|int, AssetDto>
Methods
- __construct() : mixed
- addCssAsset() : void
- addHtmlContentToBody() : void
- addHtmlContentToHead() : void
- addJsAsset() : void
- addWebpackEncoreAsset() : void
- getBodyContents() : array<string|int, mixed>
- getCssAssets() : array<string|int, AssetDto>
- getDefaultAssetPackageName() : string
- getHeadContents() : array<string|int, mixed>
- getJsAssets() : array<string|int, AssetDto>
- getWebpackEncoreAssets() : array<string|int, AssetDto>
- loadedOn() : self
- mergeWith() : self
Properties
$bodyContents
private
array<string|int, AssetDto>
$bodyContents
= []
$cssAssets
private
array<string|int, AssetDto>
$cssAssets
= []
$headContents
private
array<string|int, AssetDto>
$headContents
= []
$jsAssets
private
array<string|int, AssetDto>
$jsAssets
= []
$webpackEncoreAssets
private
array<string|int, AssetDto>
$webpackEncoreAssets
= []
Methods
__construct()
public
__construct() : mixed
addCssAsset()
public
addCssAsset(AssetDto $assetDto) : void
Parameters
- $assetDto : AssetDto
addHtmlContentToBody()
public
addHtmlContentToBody(string $htmlContent) : void
Parameters
- $htmlContent : string
addHtmlContentToHead()
public
addHtmlContentToHead(string $htmlContent) : void
Parameters
- $htmlContent : string
addJsAsset()
public
addJsAsset(AssetDto $assetDto) : void
Parameters
- $assetDto : AssetDto
addWebpackEncoreAsset()
public
addWebpackEncoreAsset(AssetDto $assetDto) : void
Parameters
- $assetDto : AssetDto
getBodyContents()
public
getBodyContents() : array<string|int, mixed>
Return values
array<string|int, mixed>getCssAssets()
public
getCssAssets() : array<string|int, AssetDto>
Return values
array<string|int, AssetDto>getDefaultAssetPackageName()
public
getDefaultAssetPackageName() : string
Return values
stringgetHeadContents()
public
getHeadContents() : array<string|int, mixed>
Return values
array<string|int, mixed>getJsAssets()
public
getJsAssets() : array<string|int, AssetDto>
Return values
array<string|int, AssetDto>getWebpackEncoreAssets()
public
getWebpackEncoreAssets() : array<string|int, AssetDto>
Return values
array<string|int, AssetDto>loadedOn()
public
loadedOn(string|null $pageName) : self
Parameters
- $pageName : string|null
Return values
selfmergeWith()
public
mergeWith(self $assetsDto) : self
Parameters
- $assetsDto : self