public function JsCollectionRenderer::__construct
public JsCollectionRenderer::__construct(StateInterface $state)
Constructs a JsCollectionRenderer.
Parameters
\Drupal\Core\State\StateInterface: The state key/value store.
File
- core/lib/Drupal/Core/Asset/JsCollectionRenderer.php, line 26
Class
- JsCollectionRenderer
- Renders JavaScript assets.
Namespace
Drupal\Core\AssetCode
public function __construct(StateInterface $state) { $this->state = $state; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Asset!JsCollectionRenderer.php/function/JsCollectionRenderer::__construct/8.1.x