19declare(strict_types=1);
30use ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher;
51 return $this->context_collection->
main()->repository()->desktop();
61 $last_context = $called_contexts->getLast();
64 $additional_data = $last_context->getAdditionalData();
81 $id_generator =
function (
$id) {
82 return $this->identification_provider->contextAwareIdentifier(
$id);
84 $identification = $id_generator(
'system_styles_tree');
85 $hashed = $this->hash($identification->serialize());
87 $lng = $this->services->presentation()->utilities();
90 ->tool($identification)
92 $lng->txt(
'meta_lom_short')
95 $this->services->dic()->ui()->factory()->symbol()->icon()->standard(
97 $lng->txt(
'meta_lom_short')
100 ->withContent($this->services->dic()->ui()->factory()->legacy()->content(
101 $this->services->dic()->ui()->renderer()->render($this->getUITree(
107 if (
$c instanceof LegacySlate) {
108 $signal_id =
$c->getToggleSignal()->
getId();
109 return $c->withAdditionalOnLoadCode(
static function (
$id) use ($hashed) {
110 return "il.UI.maincontrols.mainbar.engageTool('$hashed');";
120 $this->services->paths()->pathFactory(),
121 $this->services->editor()->presenter(),
122 $this->services->editor()->dictionary(),
123 $this->services->editor()->linkFactory(),
124 ...$this->getElements($set,
$path)
126 $f = $this->services->dic()->ui()->factory();
129 ->expandable(
'MD Editor Tree', $recursion)
131 ->withHighlightOnNodeClick(
true);
139 yield
from $this->services->paths()->navigatorFactory()->navigator(
142 )->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