public function AsseticTokenParser::__construct

Constructor.

Attributes can be added to the tag by passing names as the options array. These values, if found, will be passed to the factory and node.

Parameters

AssetFactory $factory The asset factory:

string $tag The tag name:

string $output The default output string:

Boolean $single Whether to force a single asset:

array $extensions Additional attribute names to look for:

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Extension/Twig/AsseticTokenParser.php, line 37

Class

AsseticTokenParser

Namespace

Assetic\Extension\Twig

Code

public function __construct(AssetFactory $factory, $tag, $output, $single = false, array $extensions = array()) {
  $this->factory = $factory;
  $this->tag = $tag;
  $this->output = $output;
  $this->single = $single;
  $this->extensions = $extensions;
}