38 $modules = $this->views->getESModules();
40 if (!empty($modules)) {
41 foreach ($modules as
$name) {
43 $imports[$short_name] = $this->cache->getUrl($name);
47 $imports = array_merge($imports, $this->runtime_modules);
60 public function register(
string $name,
string $href):
void {
71 public function import(
string $name):
void {
72 $this->imports[
$name] =
true;
81 return array_keys($this->imports);
getImports()
Returns all modules that requested to be loaded.
if(!$user||!$user->canDelete()) $name
Keeps track of ES modules.
__construct(protected ViewsService $views, protected SimpleCache $cache)
Constructor.
getImportMapData()
Returns the importmap data.