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

See also

\Drupal\Core\Asset\AttachedAssetsInterface

\Drupal\Core\Asset\LibraryDependencyResolverInterface

File

core/lib/Drupal/Core/Asset/AssetResolverInterface.php, line 18

Namespace

Drupal\Core\Asset

Members

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.
doc_Drupal
2016-10-29 08:44:54
Comments
Leave a Comment

Please login to continue.