public function AssetManager::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

2 calls to AssetManager::has()
LazyAssetManager::get in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Factory/LazyAssetManager.php
Gets an asset by name.
LazyAssetManager::has in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Factory/LazyAssetManager.php
Checks if the current asset manager has a certain asset.
1 method overrides AssetManager::has()
LazyAssetManager::has in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Factory/LazyAssetManager.php
Checks if the current asset manager has a certain asset.

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/AssetManager.php, line 50

Class

AssetManager
Manages assets.

Namespace

Assetic

Code

public function has($name) {
  return isset($this->assets[$name]);
}