ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Legacy.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
28
32class Legacy extends Slate implements ISlate\Legacy
33{
37 protected array $contents = [];
38
39 public function __construct(
41 string $name,
43 ILegacy $content
44 ) {
46 $this->contents = [$content];
47 }
48
52 public function getContents(): array
53 {
54 return $this->contents;
55 }
56
57 public function withMappedSubNodes(callable $f): ISlate\Legacy
58 {
59 return $this;
60 }
61}
__construct(SignalGeneratorInterface $signal_generator, string $name, Symbol $symbol, ILegacy $content)
Definition: Legacy.php:39
A component is the most general form of an entity in the UI.
Definition: Component.php:28
This describes a symbol.
Definition: Symbol.php:30
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Combined.php:21