19declare(strict_types=1);
23use InvalidArgumentException;
32 protected \
ILIAS\
UICore\GlobalTemplate $il_template,
39 public function register(
string $name):
void
41 $path_parts = pathinfo($name);
42 switch ($path_parts[
"extension"]) {
44 $this->il_template->addJavaScript($name,
true, 1);
47 $this->il_template->addCss($name);
53 throw new InvalidArgumentException(
"Can't handle resource '$name'");
Plumbing for ILIAS, tries to guess.
__construct(protected \ILIAS\UICore\GlobalTemplate $il_template,)
Registry for resources required by rendered output like Javascript or CSS.
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.