function public function ProviderInterface::getAssets

8.x-3.x ProviderInterface.php public ProviderInterface::getAssets($types = NULL)

Retrieves Provider assets for the active provider, if any.

Parameters

string|array $types: The type of asset to retrieve: "css" or "js", defaults to an array array containing both if not set.

Return value

array If $type is a string or an array with only one (1) item in it, the assets are returned as an indexed array of files. Otherwise, an associative array is returned keyed by the type.

Deprecated

in 8.x-3.18, will be removed in a future release.

Class

ProviderInterface
ProviderInterface.

Namespace

Drupal\bootstrap\Plugin\Provider

Source src/Plugin/Provider/ProviderInterface.php (line 272)

public function getAssets($types = NULL);