class AssetManager (View source)

Properties

protected AlpineComponent[]> $alpineComponents
protected array<string,array<string,mixed>> $cssVariables
protected array<string,array<string,mixed>> $scriptData
protected Js[]> $scripts
protected Css[]> $styles
protected Theme> $themes

Methods

void
register(array $assets, string $package = 'app')

No description

void
registerCssVariables(array $variables, string|null $package = null)

No description

void
registerScriptData(array $data, string|null $package = null)

No description

array
getAlpineComponents(array|null $packages = null)

No description

string
getAlpineComponentSrc(string $id, string $package = 'app')

No description

array
getScriptData(array|null $packages = null)

No description

string
getScriptSrc(string $id, string $package = 'app')

No description

array
getScripts(array|null $packages = null, bool $withCore = true)

No description

string
renderScripts(array|null $packages = null, bool $withCore = false)

No description

array
getStyles(array|null $packages = null)

No description

string
getStyleHref(string $id, string $package = 'app')

No description

array
getCssVariables(array|null $packages = null)

No description

string
renderStyles(array|null $packages = null)

No description

Theme|null
getTheme(string|null $id)

No description

array
getThemes()

No description

array
getAssets(array $assets, array|null $packages = null)

No description

Details

void register(array $assets, string $package = 'app')

No description

Parameters

array $assets
string $package

Return Value

void

void registerCssVariables(array $variables, string|null $package = null)

No description

Parameters

array $variables
string|null $package

Return Value

void

void registerScriptData(array $data, string|null $package = null)

No description

Parameters

array $data
string|null $package

Return Value

void

array getAlpineComponents(array|null $packages = null)

No description

Parameters

array|null $packages

Return Value

array

string getAlpineComponentSrc(string $id, string $package = 'app')

No description

Parameters

string $id
string $package

Return Value

string

array getScriptData(array|null $packages = null)

No description

Parameters

array|null $packages

Return Value

array

string getScriptSrc(string $id, string $package = 'app')

No description

Parameters

string $id
string $package

Return Value

string

array getScripts(array|null $packages = null, bool $withCore = true)

No description

Parameters

array|null $packages
bool $withCore

Return Value

array

string renderScripts(array|null $packages = null, bool $withCore = false)

No description

Parameters

array|null $packages
bool $withCore

Return Value

string

array getStyles(array|null $packages = null)

No description

Parameters

array|null $packages

Return Value

array

string getStyleHref(string $id, string $package = 'app')

No description

Parameters

string $id
string $package

Return Value

string

array getCssVariables(array|null $packages = null)

No description

Parameters

array|null $packages

Return Value

array

string renderStyles(array|null $packages = null)

No description

Parameters

array|null $packages

Return Value

string

Theme|null getTheme(string|null $id)

No description

Parameters

string|null $id

Return Value

Theme|null

array getThemes()

No description

Return Value

array

protected array getAssets(array $assets, array|null $packages = null)

No description

Parameters

array $assets
array|null $packages

Return Value

array