function AssetResolverInterface::getFontAssets

Same name and namespace in other branches
  1. main core/lib/Drupal/Core/Asset/AssetResolverInterface.php \Drupal\Core\Asset\AssetResolverInterface::getFontAssets()

Returns the fonts for the current response's libraries.

Parameters

\Drupal\Core\Asset\AttachedAssetsInterface $assets: The assets attached to the current response.

\Drupal\Core\Language\LanguageInterface $language: (optional) The interface language the assets will be rendered with.

Return value

array An array of font assets.

1 method overrides AssetResolverInterface::getFontAssets()
AssetResolver::getFontAssets in core/lib/Drupal/Core/Asset/AssetResolver.php
Returns the fonts for the current response's libraries.

File

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

Class

AssetResolverInterface
Resolves asset libraries into concrete CSS and JavaScript assets.

Namespace

Drupal\Core\Asset

Code

public function getFontAssets(AttachedAssetsInterface $assets, ?LanguageInterface $language = NULL) : array;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.