function AssetControllerBase::getGroups

Same name in other branches
  1. 10 core/modules/system/src/Controller/AssetControllerBase.php \Drupal\system\Controller\AssetControllerBase::getGroups()

Get grouped assets.

Parameters

\Drupal\Core\Asset\AttachedAssetsInterface $attached_assets: The attached assets.

\Symfony\Component\HttpFoundation\Request $request: The current request.

Return value

array The grouped assets.

Throws

\Symfony\Component\HttpKernel\Exception\BadRequestHttpException Thrown when the query argument is omitted.

1 call to AssetControllerBase::getGroups()
AssetControllerBase::deliver in core/modules/system/src/Controller/AssetControllerBase.php
Generates an aggregate, given a filename.
2 methods override AssetControllerBase::getGroups()
CssAssetController::getGroups in core/modules/system/src/Controller/CssAssetController.php
Get grouped assets.
JsAssetController::getGroups in core/modules/system/src/Controller/JsAssetController.php
Get grouped assets.

File

core/modules/system/src/Controller/AssetControllerBase.php, line 253

Class

AssetControllerBase
Defines a controller to serve asset aggregates.

Namespace

Drupal\system\Controller

Code

protected abstract function getGroups(AttachedAssetsInterface $attached_assets, Request $request) : array;

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