ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
Link.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS;
22 
25 class Link implements Component\Component
26 {
27  public function init(
28  array | \ArrayAccess &$define,
29  array | \ArrayAccess &$implement,
30  array | \ArrayAccess &$use,
31  array | \ArrayAccess &$contribute,
32  array | \ArrayAccess &$seek,
33  array | \ArrayAccess &$provide,
34  array | \ArrayAccess &$pull,
35  array | \ArrayAccess &$internal,
36  ): void {
37  $contribute[\ILIAS\Setup\Agent::class] = static fn() =>
39  $pull[\ILIAS\Refinery\Factory::class]
40  );
41 
42  $contribute[Component\Resource\PublicAsset::class] = fn() =>
43  new Component\Resource\ComponentJS($this, "ilExtLink.js");
44  $contribute[Component\Resource\PublicAsset::class] = static fn() =>
45  new Component\Resource\NodeModule("linkifyjs/dist/linkify.min.js");
46  $contribute[Component\Resource\PublicAsset::class] = static fn() =>
47  new Component\Resource\NodeModule("linkify-element/dist/linkify-element.min.js");
48  }
49 }
Interface Observer Contains several chained tasks and infos about them.
This is a js file provided by some component.
Definition: ComponentJS.php:26
Some distributable file created by npm.
Definition: NodeModule.php:26