Documentation

Asset
in package

FinalYes
Tags
author

Javier Eguiluz javier.eguiluz@gmail.com

Table of Contents

Properties

$dto  : AssetDto

Methods

__toString()  : mixed
async()  : self
defer()  : self
fromEasyAdminAssetPackage()  : self
Assets provided by EasyAdmin (e.g. 'bundles/easyadmin/app.js') are versioned and managed through a special Symfony Asset named package.
getAsDto()  : AssetDto
htmlAttr()  : self
htmlAttrs()  : self
ignoreOnDetail()  : self
ignoreOnForm()  : self
ignoreOnIndex()  : self
ignoreWhenCreating()  : self
ignoreWhenUpdating()  : self
new()  : self
nopush()  : self
onlyOnDetail()  : self
onlyOnForms()  : self
onlyOnIndex()  : self
onlyWhenCreating()  : self
onlyWhenUpdating()  : self
package()  : self
preload()  : self
webpackEntrypointName()  : self
webpackPackageName()  : self
__construct()  : mixed

Properties

Methods

__toString()

public __toString() : mixed

async()

public async([bool $async = true ]) : self
Parameters
$async : bool = true
Return values
self

defer()

public defer([bool $defer = true ]) : self
Parameters
$defer : bool = true
Return values
self

fromEasyAdminAssetPackage()

Assets provided by EasyAdmin (e.g. 'bundles/easyadmin/app.js') are versioned and managed through a special Symfony Asset named package.

public static fromEasyAdminAssetPackage(string $value) : self

Call this method instead of '::new()' when adding those EasyAdmin assets so they use the right package name (which is needed later when calling to 'asset()' Twig function).

Parameters
$value : string

The 'path' when adding CSS or JS files and the 'entryName' when adding Webpack Encore entries

Return values
self

htmlAttr()

public htmlAttr(string $attrName, string $attrValue) : self
Parameters
$attrName : string
$attrValue : string
Return values
self

htmlAttrs()

public htmlAttrs(array<string|int, mixed> $attrNamesAndValues) : self
Parameters
$attrNamesAndValues : array<string|int, mixed>
Return values
self

ignoreOnDetail()

public ignoreOnDetail() : self
Return values
self

ignoreOnForm()

public ignoreOnForm() : self
Return values
self

ignoreOnIndex()

public ignoreOnIndex() : self
Return values
self

ignoreWhenCreating()

public ignoreWhenCreating() : self
Return values
self

ignoreWhenUpdating()

public ignoreWhenUpdating() : self
Return values
self

new()

public static new(string $value) : self
Parameters
$value : string

The 'path' when adding CSS or JS files and the 'entryName' when adding Webpack Encore entries

Return values
self

nopush()

public nopush([bool $nopush = true ]) : self
Parameters
$nopush : bool = true
Return values
self

onlyOnDetail()

public onlyOnDetail() : self
Return values
self

onlyOnForms()

public onlyOnForms() : self
Return values
self

onlyOnIndex()

public onlyOnIndex() : self
Return values
self

onlyWhenCreating()

public onlyWhenCreating() : self
Return values
self

onlyWhenUpdating()

public onlyWhenUpdating() : self
Return values
self

package()

public package(string $packageName) : self
Parameters
$packageName : string

The name of the Symfony Asset package this asset belongs to

Return values
self

preload()

public preload([bool $preload = true ]) : self
Parameters
$preload : bool = true
Return values
self

webpackEntrypointName()

public webpackEntrypointName(string $entrypointName) : self
Parameters
$entrypointName : string
Return values
self

webpackPackageName()

public webpackPackageName([string|null $packageName = null ]) : self
Parameters
$packageName : string|null = null
Return values
self

        
On this page

Search results