WebpackEncoreConfig
in package
implements
ConfigBuilderInterface
This class is automatically generated to help in creating a config.
Table of Contents
Interfaces
- ConfigBuilderInterface
- A ConfigBuilder provides helper methods to build a large complex array.
Properties
- $_usedProperties : mixed
- $builds : mixed
- $cache : mixed
- $crossorigin : mixed
- $linkAttributes : mixed
- $outputPath : mixed
- $preload : mixed
- $scriptAttributes : mixed
- $strictMode : mixed
Methods
- __construct() : mixed
- builds() : $this
- cache() : $this
- Enable caching of the entry point file(s)
- crossorigin() : $this
- crossorigin value when Encore.enableIntegrityHashes() is used, can be false (default), anonymous or use-credentials
- getExtensionAlias() : string
- Gets the alias for the extension which config we are building.
- linkAttributes() : $this
- outputPath() : $this
- The path where Encore is building the assets - i.e. Encore.setOutputPath()
- preload() : $this
- preload all rendered script and link tags automatically via the http2 Link header.
- scriptAttributes() : $this
- strictMode() : $this
- Throw an exception if the entrypoints.json file is missing or an entry is missing from the data
- toArray() : array<string|int, mixed>
- Gets all configuration represented as an array.
Properties
$_usedProperties
private
mixed
$_usedProperties
= []
$builds
private
mixed
$builds
$cache
private
mixed
$cache
$crossorigin
private
mixed
$crossorigin
$linkAttributes
private
mixed
$linkAttributes
$outputPath
private
mixed
$outputPath
$preload
private
mixed
$preload
$scriptAttributes
private
mixed
$scriptAttributes
$strictMode
private
mixed
$strictMode
Methods
__construct()
public
__construct([array<string|int, mixed> $value = [] ]) : mixed
Parameters
- $value : array<string|int, mixed> = []
builds()
public
builds(string $name, mixed $value) : $this
Parameters
- $name : string
- $value : mixed
Return values
$thiscache()
Enable caching of the entry point file(s)
public
cache(ParamConfigurator|bool $value) : $this
Parameters
- $value : ParamConfigurator|bool
Tags
Return values
$thiscrossorigin()
crossorigin value when Encore.enableIntegrityHashes() is used, can be false (default), anonymous or use-credentials
public
crossorigin(ParamConfigurator|false|"anonymous"|"use-credentials" $value) : $this
Parameters
- $value : ParamConfigurator|false|"anonymous"|"use-credentials"
Tags
Return values
$thisgetExtensionAlias()
Gets the alias for the extension which config we are building.
public
getExtensionAlias() : string
Return values
stringlinkAttributes()
public
linkAttributes(string $name, mixed $value) : $this
Parameters
- $name : string
- $value : mixed
Return values
$thisoutputPath()
The path where Encore is building the assets - i.e. Encore.setOutputPath()
public
outputPath(ParamConfigurator|mixed $value) : $this
Parameters
- $value : ParamConfigurator|mixed
Tags
Return values
$thispreload()
preload all rendered script and link tags automatically via the http2 Link header.
public
preload(ParamConfigurator|bool $value) : $this
Parameters
- $value : ParamConfigurator|bool
Tags
Return values
$thisscriptAttributes()
public
scriptAttributes(string $name, mixed $value) : $this
Parameters
- $name : string
- $value : mixed
Return values
$thisstrictMode()
Throw an exception if the entrypoints.json file is missing or an entry is missing from the data
public
strictMode(ParamConfigurator|bool $value) : $this
Parameters
- $value : ParamConfigurator|bool
Tags
Return values
$thistoArray()
Gets all configuration represented as an array.
public
toArray() : array<string|int, mixed>