PHP Trait Bolt\Extension\AssetTrait

Author: Gawain Lynch ([email protected])
Afficher le fichier Open project: bolt/bolt

Méthodes protégées

Méthode Description
addJquery ( ) Add jQuery to the output.
disableJquery ( ) Don't add jQuery to the output.
extendAssetServices ( ) Call this in register method.
getBaseDirectory ( ) : Bolt\Filesystem\Handler\DirectoryInterface
getContainer ( ) : Pimple
getName ( ) : string
getWebDirectory ( ) : Bolt\Filesystem\Handler\DirectoryInterface
registerAssets ( ) : Bolt\Asset\AssetInterface[] Returns a list of assets to register. Assets can be a file, snippet, or widget.

Private Methods

Méthode Description
addAsset ( Bolt\Asset\AssetInterface $asset ) Add an file, snippet or widget asset to the render queue.
isAbsoluteUrl ( string $url ) : boolean
loadAssets ( ) Merges assets returned from registerAssets() to our list.
normalizeAsset ( Bolt\Asset\File\FileAssetInterface $asset ) Normalizes the path and package name of the asset file.

Method Details

addJquery() protected méthode

Add jQuery to the output.
Deprecation: Deprecated since 3.0, to be removed in 4.0.
protected addJquery ( )

disableJquery() protected méthode

Don't add jQuery to the output.
Deprecation: Deprecated since 3.0, to be removed in 4.0.
protected disableJquery ( )

extendAssetServices() final protected méthode

Call this in register method.
final protected extendAssetServices ( )

getBaseDirectory() abstract protected méthode

abstract protected getBaseDirectory ( ) : Bolt\Filesystem\Handler\DirectoryInterface
Résultat Bolt\Filesystem\Handler\DirectoryInterface

getContainer() abstract protected méthode

abstract protected getContainer ( ) : Pimple
Résultat Pimple

getName() abstract protected méthode

abstract protected getName ( ) : string
Résultat string

getWebDirectory() abstract protected méthode

abstract protected getWebDirectory ( ) : Bolt\Filesystem\Handler\DirectoryInterface
Résultat Bolt\Filesystem\Handler\DirectoryInterface

registerAssets() protected méthode

Returns a list of assets to register. Assets can be a file, snippet, or widget.
protected registerAssets ( ) : Bolt\Asset\AssetInterface[]
Résultat Bolt\Asset\AssetInterface[]