\Drupflare\Anachron\Drupal\Asset RetrofitLibraryDiscovery

Summary

Methods
Properties
Constants
__construct
has
get
set
delete
reset
clear
destruct
getLibrariesByExtension
getLibraryByName
clearCachedDefinitions
setRetrofitLibrary
No public properties found
No public constants found
No protected methods found
retrofitLibraries
No protected constants found
No private methods found
inner
No private constants found

Properties

$retrofitLibraries

$retrofitLibraries : array[]

Type

array<string|int, array<string|int, mixed>> —

$inner

$inner : \Drupal\Core\Asset\LibraryDiscoveryCollector

Type

LibraryDiscoveryCollector

Methods

__construct()

__construct(\Drupal\Core\Asset\LibraryDiscoveryCollector  $inner) : mixed

Parameters

\Drupal\Core\Asset\LibraryDiscoveryCollector $inner

Returns

mixed —

has()

has(mixed  $key) : mixed

Parameters

mixed $key

Returns

mixed —

get()

get(mixed  $key) : mixed

Parameters

mixed $key

Returns

mixed —

set()

set(mixed  $key, mixed  $value) : mixed

Parameters

mixed $key
mixed $value

Returns

mixed —

delete()

delete(mixed  $key) : mixed

Parameters

mixed $key

Returns

mixed —

reset()

reset() : mixed

Returns

mixed —

clear()

clear() : mixed

Returns

mixed —

destruct()

destruct() : mixed

Returns

mixed —

getLibrariesByExtension()

getLibrariesByExtension(string  $extension) : array[]

Parameters

string $extension

Returns

array[] —

getLibraryByName()

getLibraryByName(string  $extension, string  $name) : array|false

Parameters

string $extension
string $name

Returns

array|false —

clearCachedDefinitions()

clearCachedDefinitions() : void

Returns

void —

setRetrofitLibrary()

setRetrofitLibrary(string  $key, array{css?: array, js?: array, requires_jquery?: bool}  $attachments) : void

Parameters

string $key
array{css?: array, js?: array, requires_jquery?: bool} $attachments

Returns

void —