AssetResolverInterface
interface AssetResolverInterface
Resolves asset libraries into concrete CSS and JavaScript assets.
Given an attached assets collection (to be loaded for the current response), the asset resolver can resolve those asset libraries into a list of concrete CSS and JavaScript assets.
In other words: this allows developers to translate Drupal's asset abstraction (asset libraries) into concrete assets.
Hierarchy
- interface \Drupal\Core\Asset\AssetResolverInterface
See also
\Drupal\Core\Asset\AttachedAssetsInterface
\Drupal\Core\Asset\LibraryDependencyResolverInterface
File
- core/lib/Drupal/Core/Asset/AssetResolverInterface.php, line 18
Namespace
Drupal\Core\AssetMembers
Name | Modifiers | Type | Description |
---|---|---|---|
AssetResolverInterface::getCssAssets | public | function | Returns the CSS assets for the current response's libraries. |
AssetResolverInterface::getJsAssets | public | function | Returns the JavaScript assets for the current response's libraries. |
© 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!AssetResolverInterface.php/interface/AssetResolverInterface/8.1.x