public function LazyAssetManager::hasFormula

Checks for an asset formula.

Parameters

string $name An asset name:

Return value

Boolean If there is a formula

File

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

Class

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

Namespace

Assetic\Factory

Code

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