public function LazyAssetManager::has

Checks if the current asset manager has a certain asset.

Parameters

string $name an asset name:

Return value

Boolean True if the asset has been set, false if not

Overrides AssetManager::has

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Factory/LazyAssetManager.php, line 182

Class

LazyAssetManager
A lazy asset manager is a composition of a factory and many formula loaders.

Namespace

Assetic\Factory

Code

public function has($name) {
  if (!$this->loaded) {
    $this
      ->load();
  }
  return isset($this->formulae[$name]) || parent::has($name);
}