24 return $this->context_collection->
main()->repository();
34 $additional_data = $called_contexts->
current()->getAdditionalData();
35 if ($additional_data->is(self::SHOW_TREE,
true)) {
36 $title = $this->dic->language()->txt(
'objs_st');
37 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"standard/icon_chp.svg"), $title);
39 $iff =
function (
$id) {
40 return $this->identification_provider->contextAwareIdentifier(
$id);
42 $l =
function (
string $content) {
43 return $this->dic->ui()->factory()->legacy($content);
45 $identification = $iff(
"tree");
46 $hashed = $this->
hash($identification->serialize());
47 $tools[] = $this->factory->tool($identification)
49 if ($c instanceof LegacySlate) {
50 $signal_id = $c->getToggleSignal()->getId();
51 return $c->withAdditionalOnLoadCode(
static function (
$id) use ($hashed) {
52 return "document.addEventListener('il-lm-editor-tree', () => { 53 il.UI.maincontrols.mainbar.engageTool('$hashed'); 61 ->withContentWrapper(
function () use ($l) {
78 $request = $DIC->learningModule()
88 return $exp->getHTML();
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider .
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
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...
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins