22use ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher;
40 return $this->context_collection->
main()->repository();
50 $additional_data = $called_contexts->
current()->getAdditionalData();
51 if ($additional_data->is(self::SHOW_TREE,
true)) {
52 $title = $this->dic->language()->txt(
'objs_st');
53 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"standard/icon_chp.svg"), $title);
55 $iff =
function (
$id) {
56 return $this->identification_provider->contextAwareIdentifier(
$id);
58 $l =
function (
string $content) {
59 return $this->dic->ui()->factory()->legacy()->content($content);
61 $identification = $iff(
"tree");
62 $hashed = $this->hash($identification->serialize());
63 $tools[] = $this->
factory->tool($identification)
65 if (
$c instanceof LegacySlate) {
66 $signal_id =
$c->getToggleSignal()->
getId();
67 return $c->withAdditionalOnLoadCode(
static function (
$id) use ($hashed) {
68 return "document.addEventListener('il-lm-editor-tree', () => {
69 il.UI.maincontrols.mainbar.engageTool('$hashed');
77 ->withContentWrapper(
function () use ($l) {
93 $request =
$DIC->learningModule()
103 return $exp->getHTML(
true);
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.