ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Link.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS;
22
25class 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}
This is a js file provided by some component.
Definition: ComponentJS.php:27
Some distributable file created by npm.
Definition: NodeModule.php:27
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
A component is the most general form of an entity in the UI.
Definition: Component.php:28
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.