protected function AssetFactory::createAssetReference

1 call to AssetFactory::createAssetReference()
AssetFactory::parseInput in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Factory/AssetFactory.php
Parses an input string string into an asset.

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Factory/AssetFactory.php, line 301

Class

AssetFactory
The asset factory creates asset objects.

Namespace

Assetic\Factory

Code

protected function createAssetReference($name) {
  if (!$this->am) {
    throw new \LogicException('There is no asset manager.');
  }
  return new AssetReference($this->am, $name);
}