19declare(strict_types=1);
31use ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher;
52 return $this->context_collection->
main()->repository()->desktop();
62 $last_context = $called_contexts->getLast();
65 $additional_data = $last_context->getAdditionalData();
82 $id_generator =
function (
$id) {
83 return $this->identification_provider->contextAwareIdentifier(
$id);
85 $identification = $id_generator(
'system_styles_tree');
86 $hashed = $this->hash($identification->serialize());
88 $lng = $this->services->presentation()->utilities();
91 ->tool($identification)
93 $lng->txt(
'meta_lom_short')
96 $this->services->dic()->ui()->factory()->symbol()->icon()->standard(
98 $lng->txt(
'meta_lom_short')
101 ->withContent($this->services->dic()->ui()->factory()->legacy()->content(
102 $this->services->dic()->ui()->renderer()->render($this->getUITree(
108 if (
$c instanceof LegacySlate) {
109 $signal_id =
$c->getToggleSignal()->
getId();
110 return $c->withAdditionalOnLoadCode(
static function (
$id) use ($hashed) {
111 return "il.UI.maincontrols.mainbar.engageTool('$hashed');";
121 $this->services->paths()->pathFactory(),
122 $this->services->editor()->internal()->presenter(),
123 $this->services->editor()->internal()->dictionary(),
124 $this->services->editor()->internal()->linkFactory(),
125 ...$this->getElements($set,
$path)
127 $f = $this->services->dic()->ui()->factory();
130 ->expandable(
'MD Editor Tree', $recursion)
132 ->withHighlightOnNodeClick(
true);
140 yield
from $this->services->paths()->navigatorFactory()->navigator(
143 )->elementsAtFinalStep();
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Customizing of pimple-DIC for ILIAS.
const string PATH_FOR_TREE
const string SET_FOR_TREE
A component is the most general form of an entity in the UI.
This describes the Legacy-Slate.
This describes a Tree Control.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc