Keeps track of ES modules.
More...
Keeps track of ES modules.
- Since
- 6.0
Definition at line 14 of file ESMService.php.
Elgg\Javascript\ESMService::getImportMapData |
( |
| ) |
|
Returns the importmap data.
- Returns
- array
Definition at line 37 of file ESMService.php.
Elgg\Javascript\ESMService::getImports |
( |
| ) |
|
Returns all modules that requested to be loaded.
- Returns
- array
Definition at line 80 of file ESMService.php.
Elgg\Javascript\ESMService::import |
( |
string |
$name | ) |
|
Request a module to be loaded on the page.
- Parameters
-
string | $name | name of the module |
- Returns
- void
Definition at line 71 of file ESMService.php.
Elgg\Javascript\ESMService::register |
( |
string |
$name, |
|
|
string |
$href |
|
) |
| |
Registers a module to the import map.
- Parameters
-
string | $name | name of the module |
string | $href | location from where to download the module (usually a simplecache location) |
- Returns
- void
Definition at line 60 of file ESMService.php.
array Elgg\Javascript\ESMService::$imports = [] |
|
protected |
array Elgg\Javascript\ESMService::$runtime_modules = [] |
|
protected |
The documentation for this class was generated from the following file: