Documentation

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

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
$this

crossorigin()

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
default

false

Return values
$this

getExtensionAlias()

Gets the alias for the extension which config we are building.

public getExtensionAlias() : string
Return values
string

linkAttributes()

public linkAttributes(string $name, mixed $value) : $this
Parameters
$name : string
$value : mixed
Return values
$this

scriptAttributes()

public scriptAttributes(string $name, mixed $value) : $this
Parameters
$name : string
$value : mixed
Return values
$this

toArray()

Gets all configuration represented as an array.

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results