ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Link.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS;
22 
23 class Link implements Component\Component
24 {
25  public function init(
26  array | \ArrayAccess &$define,
27  array | \ArrayAccess &$implement,
28  array | \ArrayAccess &$use,
29  array | \ArrayAccess &$contribute,
30  array | \ArrayAccess &$seek,
31  array | \ArrayAccess &$provide,
32  array | \ArrayAccess &$pull,
33  array | \ArrayAccess &$internal,
34  ): void {
35  $contribute[\ILIAS\Setup\Agent::class] = static fn() =>
37  $pull[\ILIAS\Refinery\Factory::class]
38  );
39 
40  $contribute[Component\Resource\PublicAsset::class] = fn() =>
41  new Component\Resource\ComponentJS($this, "ilExtLink.js");
42  $contribute[Component\Resource\PublicAsset::class] = static fn() =>
43  new Component\Resource\NodeModule("linkifyjs/dist/linkify.min.js");
44  $contribute[Component\Resource\PublicAsset::class] = static fn() =>
45  new Component\Resource\NodeModule("linkify-element/dist/linkify-element.min.js");
46  }
47 }
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