Elgg  Version 6.1
importmap.json.php
Go to the documentation of this file.
1 <?php
2 
3 $importmap = _elgg_services()->esm->getImportMapData();
4 
5 echo elgg_format_element('script', ['type' => 'importmap'], json_encode($importmap));
_elgg_services()
Get the global service provider.
Definition: elgglib.php:353
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145
$importmap