public function AssetReference::load

Loads the asset into memory and applies load filters.

You may provide an additional filter to apply during load.

Parameters

FilterInterface $additionalFilter An additional filter:

Overrides AssetInterface::load

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetReference.php, line 52

Class

AssetReference
A reference to an asset in the asset manager.

Namespace

Assetic\Asset

Code

public function load(FilterInterface $additionalFilter = null) {
  $this
    ->flushFilters();
  return $this
    ->callAsset(__FUNCTION__, array(
    $additionalFilter,
  ));
}